This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, October 12, 2011 11:46:24 PM(UTC)
Groups: Registered
Posts: 7
Hallo,
i would like to change the quality settings of the mj2k encoder with the "LMMJ2KEncoderLib.LMMJ2KEncoder" class but how can i commit the changes i made in this class ?
VS2005/c#/LT17
LMMJ2KEncoderLib.LMMJ2KEncoder EC2k = new LMMJ2KEncoderLib.LMMJ2KEncoder();
EC2k.CompressionRatio = 45;
CC.VideoCaptureSizes[CalcVS].Selected = true;
CC.FrameRate = CalcFrameRate;
CC.VideoCompressors.MJ2k.Selected = true;
Application.DoEvents();
#2
Posted
:
Thursday, October 13, 2011 5:33:26 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
If you mean that you want to change the properties of the LEAD MJ2K encoder, you can use the captureCtrl1.GetSubObject() Method as follows:
+---------+
LMMJ2KEncoderLib.LMMJ2KEncoder EC2k = new LMMJ2KEncoderLib.LMMJ2KEncoder();
...
captureCtrl1.VideoCompressors.MJ2k.Selected = true;
EC2k = captureCtrl1.GetSubObject(Leadtools.Multimedia.CaptureObject.VideoCompressor) as LMMJ2KEncoderLib.LMMJ2KEncoder;
EC2k.CompressionRatio = 45;
captureCtrl1.FrameRate = 5;
captureCtrl1.StartCapture(Leadtools.Multimedia.CaptureMode.VideoOrAudio);
...
+---------+
If you mean something else, please provide me with more details about your requirements.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#3
Posted
:
Thursday, October 13, 2011 6:48:55 AM(UTC)
Groups: Registered
Posts: 7
Thank you, this is how it works !
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.