Copyright © 2005-2018 MultiMedia Soft

VideoPlayer.ImageAdjustEnable method

Previous pageReturn to chapter overviewNext page



Enables/disables image adjustment of video frames.


For further details about the use of the embedded video player see the VideoPlayer class section.

For details about video clips rendering refer to the How to play video files through DirectShow tutorial.





[Visual Basic]

Public Function ImageAdjustEnable (

nPlayerIndex as Int16,

bEnable as Boolean

) as enumErrorCodes



public enumErrorCodes ImageAdjustEnable (

Int16 nPlayerIndex,

bool bEnable




public: enumErrorCodes ImageAdjustEnable (

Int16 nPlayerIndex,

bool bEnable








Number representing the zero-based index of the player that will use the video player.


Boolean value that determines if the custom transform filter for video adjustment must be inserted when building the filter graph.

Supported values are the following:

Mnemonic constant


false (default)

Disable image adjustment


Enable image adjustment. In this situation a custom transform filter is inserted inside the filter graph in order to allow processing of video frames: this setting is effective only when a new video clip is loaded.


IMPORTANT: The transform filter can be inserted inside the video stream, downstream to the decoder, only if the decoder supports the YUY2 color space. If the YUY2 color space should not be supported, the filter graph would be in any case built without the transform filter. After loading the video clip, you can verify the availability of the transform filter through the VideoPlayer.VideoTransformIsAvailable method.



Return value






Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.