ILMVColorRep Interface

Data Types:

LMVClrRep_APILEVEL

typedef enum  
{ 
   LMVClrRep_APILEVEL_1, 
} LMVClrRep_APILEVEL; 

Lists the valid values for the ApiLevel parameter that can be passed to the ResetToDefaultsEx method.

LMVClrRep_APILEVEL_1 Use the defaults from the current version of the filter.

Interface Properties:

Type

Name

Description

long

StartColor

Sets or gets the start color in RGB format. This is the color that will be replaced.

short

AngleRange

Sets or gets the color range.

short

EndColorHValue

Sets or gets the hue value for the replacement color.

short

EndColorSValue

Sets or gets the saturation value for the replacement color.

short

EndColorVValue

Sets or gets the brightness value for the replacement color.

VARIANT_BOOL EnableColorRep Indicates weather color replacement effect is enabled (VARIANT_TRUE) or not (VARIANT_FALSE).
VARIANT_BOOL IsLEADInputPinConnected Read only; returns TRUE if the filters input pin is connected.
VARIANT_BOOL IsLEADOutputPinConnected Read only; returns TRUE if the filters output pin is connected.
long InWidth Read only; the input stream width.
long InHeight Read only; the input stream height.
long OutWidth Read only; the output stream width.
long OutHeight Read only; the output stream height.
long InBits Read only; the input stream bits per pixel.
long OutBits Read only; the output stream bits per pixel.
VARIANT_BOOL GenerateSolidColor Indicates weather solid color generation is enabled (VARIANT_TRUE) or not (VARIANT_FALSE).

Interface Methods:

HRESULT ResetToDefaultsEx(LMVClrRep_APILEVEL ApiLevel);

Parameters

ApiLevel Specifies which defaults should be used by the filter.

Description

Resets the filter to default values. The ApiLevel parameter determines which default values to use. Current applications should set ApiLevel to LMVClrRep_APILEVEL_1 = 0.

The filter might change in the future and have different properties or default behaviour. Calling this method ensures future versions of the filter will behave the same way as when the application was developed.

It is best to call ResetToDefaultsEx(LMVClrRep_APILEVEL_1) before you start setting properties and start calling other methods for this interface.

Returns

S_OK if successful, < 0 if an error occurred.

Common error codes:

E_INVALIDARG

The ApiLevel parameter is invalid.

Help Version 20.0.2019.8.26
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Filters C API Help