SetImageOverlay_Attributes2
procedure SetImageOverlay_Attributes2 (Index: LongInt; LeftLocation: LongInt; TopLocation: LongInt; StretchedWidth: LongInt; StretchedHeight: LongInt; Transparent_Enabled: Boolean; UseTransparentColor: Boolean; Transparent_ColorValue: LongInt; AlphaBlend_Enabled: Boolean; AlphaBlend_Value: LongInt);
void __fastcall SetImageOverlay_Attributes2(System::LongInt Index, System::LongInt LeftLocation, System::LongInt TopLocation, System::LongInt StretchedWidth, System::LongInt StretchedHeight, bool Transparent_Enabled, bool UseTransparentColor, System::LongInt Transparent_ColorValue, bool AlphaBlend_Enabled, System::LongInt AlphaBlend_Value);
public void SetImageOverlay_Attributes2(int Index, int LeftLocation, int TopLocation, int StretchedWidth, int StretchedHeight, bool Transparent_Enabled, bool UseTransparentColor, int Transparent_ColorValue, bool AlphaBlend_Enabled, int AlphaBlend_Value);
Public Sub SetImageOverlay_Attributes2(Index As Integer, LeftLocation As Integer, TopLocation As Integer, StretchedWidth As Integer, StretchedHeight As Integer, Transparent_Enabled As Boolean, UseTransparentColor As Boolean, Transparent_ColorValue As Integer, AlphaBlend_Enabled As Boolean, AlphaBlend_Value As Integer)
void SetImageOverlay_Attributes2 (int Index, int LeftLocation, int TopLocation, int StretchedWidth, int StretchedHeight, BOOL Transparent_Enabled, BOOL UseTransparentColor, int Transparent_ColorValue, BOOL AlphaBlend_Enabled, int AlphaBlend_Value);
Sets the location, size, color-based transparency and alpha blending of the image overlay specified by Index in a single call (0 for the 1st image overlay, 1 for the 2nd, etc.), instead of setting them one by one. See the Image overlays chapter.
LeftLocation, TopLocation: location of the image over the video frames, in pixels. StretchedWidth, StretchedHeight: size in pixels to which the image is stretched, -1 to keep the native width or height of the image.
Transparent_Enabled: if true, the background of the image is not drawn. If UseTransparentColor is true, Transparent_ColorValue is used as transparent color, otherwise the background color of the image is used.
AlphaBlend_Enabled, AlphaBlend_Value: progressive transparency of the image, AlphaBlend_Value in the 0..255 range. The alpha blending cannot be used when Transparent_Enabled is true. If the image is not in 32-bit format it is converted to 32 bits: for better performance, load an image already in 32-bit format.
E.g., 2nd image overlay (index 1) at the (100, 100) location, stretched to 160x90 and alpha blended: VideoGrabber.SetImageOverlay_Attributes2 (1, 100, 100, 160, 90, false, false, 0, true, 180);