Lists the valid values for the ApiLevel parameter that can be passed to the ResetToDefaultsEx method.
typedef enum
{
LMVClrRep_APILEVEL_1,
} LMVClrRep_APILEVEL;
Use the defaults from the current version of the filter.
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). |
Resets the filter to default values.
Specifies which defaults should be used by the filter. Current applications should set ApiLevel to LMVClrRep_APILEVEL_1 = 0.
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.
Return | Description |
---|---|
S_OK | Successful. |
< 0 | An error occurred. |
E_INVALIDARG | The ApiLevel parameter is invalid. |