Skip to content

SetImageOverlay_Attributes

method

Delphi
procedure SetImageOverlay_Attributes (LeftLocation: LongInt; TopLocation: LongInt; StretchedWidth: LongInt; StretchedHeight: LongInt; Transparent_Enabled: Boolean; UseTransparentColor: Boolean; Transparent_ColorValue: LongInt; AlphaBlend_Enabled: Boolean; AlphaBlend_Value: LongInt);
C++Builder
void __fastcall SetImageOverlay_Attributes(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);
C#
public void SetImageOverlay_Attributes(int LeftLocation, int TopLocation, int StretchedWidth, int StretchedHeight, bool Transparent_Enabled, bool UseTransparentColor, int Transparent_ColorValue, bool AlphaBlend_Enabled, int AlphaBlend_Value);
VB.NET
Public Sub SetImageOverlay_Attributes(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)
C++/Qt
void SetImageOverlay_Attributes (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 and transparency of the image overlaid over the video frames, for the current image overlay selected by ImageOverlaySelector. Note: see the Image overlays chapter for global information about this feature.

Location: the image will be drawn at the LeftLocation, TopLocation position over the video frames (expressed in pixels).

Size: if StretchedWidth and StretchedHeight are > 0, the image is resized to these values; if StretchedWidth = 0 and StretchedHeight = 0, the image size is used.

Transparency: if the Transparent parameter is true, the image background is not drawn; if the Transparent parameter is true and the UseTransparentColor parameter is true, the TransparentColorValue value is used for transparency.

Alpha blending: if the AlphaBlend parameter is true, a progressive bitmap transparency is applied, depending on the AlphaBlendValue, in a 0..255 range. It is not possible to perform alpha blending when the Transparent parameter is true. Important: if the bitmap color format is not 32 bits, it will be converted into a 32 bit format; in other words, for better performance pass a bitmap already in 32 bits color format.