This is the interface for the LEAD Video Crop Filter.
typedef enum eCROP_MODE
{
CROP_MODE_NORMAL = 0,
CROP_MODE_OUTLINE,
CROP_MODE_AUTO,
} CROP_MODE;
Hold Cropping mode
Constant |
Description |
CROP_MODE_NORMAL |
The filter operates the default way. |
CROP_MODE_OUTLINE |
Highlight the cropping area with a rectangle. |
CROP_MODE_AUTO |
The filter automatically detects the cropping coordinates. |
Type |
Name |
Description |
VARIANT_BOOL |
Enabled |
Set to VARIANT_TRUE to enable Cropping. |
long |
Left |
The left coordinate of the cropped rectangle. |
long |
Top |
The top coordinate of the cropped rectangle. |
long |
Right |
The right coordinate of the cropped rectangle. |
long |
Bottom |
The bottom coordinate of the cropped rectangle. |
VARIANT_BOOL |
AutoStop |
If VARIANT_TRUE, allows stopping the graph automatically, this is needed when the dimensions change while the graph is running. You need to re-run the graph after the change is applied. |
VARIANT_BOOL |
IsLEADInputPinConnected |
Read only; returns VARIANT_TRUE if the filters input pin is connected. |
VARIANT_BOOL |
IsLEADOutputPinConnected |
Read only; returns VARIANT_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. |
CROP_MODE |
CroppingMode |
Set the Cropping mode, the cropping mode is one of the CROP_MODE values |
VARIANT_BOOL |
ChangeSettings |
Set to VARIANT_TRUE to start setting the cropping attributes, the new settings will take effect when setting the ChangeSettings property to VARIANT_FALSE. |
VARIANT_BOOL | IgnoreStops | Gets or sets the value of IgnoreStops. If VARIANT_TRUE, ignore the stops and continue to calculate the automatic crop rectangle, If VARIANT_FALSE exit automatic mode when graph is stopped. |
None.
Resets the crop filter values to their default values.
S_OK if connected, S_FALSE otherwise.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.