ILMVColorRep Interface

Data Types

LMVClrRep_APILEVEL

Summary

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

Syntax

typedef enum  
{ 
   LMVClrRep_APILEVEL_1, 
} LMVClrRep_APILEVEL; 

Members

LMVClrRep_APILEVEL_1

Use the defaults from the current version of the filter.

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).

Methods

HRESULT ResetToDefaultsEx(LMVClrRep_APILEVEL ApiLevel);

Description

Resets the filter to default values.

Parameters

ApiLevel

Specifies which defaults should be used by the filter. Current applications should set ApiLevel to LMVClrRep_APILEVEL_1 = 0.

Comments

The filter might change in the future and have different properties or default behavior. 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

Return Description
S_OK Successful.
< 0 An error occurred.
E_INVALIDARG The ApiLevel parameter is invalid.
Help Version 22.0.2023.2.15
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Filters C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.