TVideoGrabber.SetImageOverlay_Attributes

Prev

Next

TVideoGrabber

Methods

 




































































































Sets the location, size and transparency for the current image overlay selected by ImageOverlaySelector


Declaration
procedure SetImageOverlayAttributes (LeftLocation: LongInt; TopLocation: LongInt; StretchedWidth: LongInt; StretchedHeight: LongInt; Transparent: Boolean; UseTransparentColor: Boolean; TransparentColorValue: LongInt; AlphaBlend: Boolean; AlphaBlendValue: LongInt);


void __fastcall SetImageOverlayAttributes(int LeftLocation, int TopLocation, int StretchedWidth, int StretchedHeight, bool Transparent, bool UseTransparentColor, TColor TransparentColorValue, bool AlphaBlend, int AlphaBlendValue)


Sub SetImageOverlayAttributes LeftLocation As Long, TopLocation As Long, bmWidth As Long, bmHeight As Long, Transparent As Boolean, UseTransparentColor As Boolean, TransparentColorValue As Long, AlphaBlend As Boolean, AlphaBlendValue As Long)

Description

Used to Specify the location, size and transparency of the image overlayed over the video frames

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 of the AlphaBlendValue, in a 0..255 range.
It is not possible to perform alphablending 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.


See Also
Image overlays TCardinalDirection TOnFrameOverlayUsingDC TOnFrameOverlayUsingDIB TTextOverlayAlign AdjustOverlayAspectRatio DrawBitmapOverFrame GetFrameInfoString GetPixelsDistance GetRGBPixelAt ImageOverlay_AlphaBlend ImageOverlay_AlphaBlendValue ImageOverlay_Height ImageOverlay_LeftLocation ImageOverlay_StretchToVideoSize ImageOverlay_TopLocation ImageOverlay_Transparent ImageOverlay_TransparentColorValue ImageOverlay_UseTransparentColor ImageOverlay_Width ImageOverlayEnabled ImageOverlaySelector MouseWheelEventEnabled OnFrameBitmap OnFrameBitmapEventSynchrone OnFrameOverlayUsingDC OnFrameOverlayUsingDIB OnFrameOverlayUsingVIDEOHDR OnMouseDown OnMouseMove OnMouseUp OnMouseWheel OverlayAfterTransform RefreshPlayerOverlays SetImageOverlay_AlphaBlend SetImageOverlay_AlphaBlendValue SetImageOverlay_ChromaKey SetImageOverlay_ChromaKeyLeewayPercent SetImageOverlay_ChromaKeyRGBColor SetImageOverlay_Enabled SetImageOverlay_Height SetImageOverlay_LeftLocation SetImageOverlay_RotationAngle SetImageOverlay_StretchToVideoSize SetImageOverlay_TargetDisplay SetImageOverlay_TopLocation SetImageOverlay_Transparent SetImageOverlay_TransparentColorValue SetImageOverlay_UseTransparentColor SetImageOverlay_Width SetImageOverlayFromBMPFile SetImageOverlayFromHBitmap SetImageOverlayFromHBitmap2 SetImageOverlayFromImageFile SetImageOverlayFromImageFile2 SetImageOverlayFromJPEGFile SetImageOverlayFromTBitmap SetImageOverlayFromTBitmap2 SetImageOverlayFromTImage SetImageOverlayFromTImage2 SetTextOverlay_Align SetTextOverlay_BkColor SetTextOverlay_CustomVar SetTextOverlay_Enabled SetTextOverlay_Font SetTextOverlay_FontColor SetTextOverlay_GradientColor SetTextOverlay_GradientMode SetTextOverlay_HighResFont SetTextOverlay_Left SetTextOverlay_Right SetTextOverlay_Scrolling SetTextOverlay_ScrollingSpeed SetTextOverlay_Shadow SetTextOverlay_ShadowColor SetTextOverlay_ShadowDirection SetTextOverlay_String SetTextOverlay_TargetDisplay SetTextOverlay_Top SetTextOverlay_Transparent ShapeOverlay ShapeOverlayEnabled ShapeOverlayList TextOverlay_Align TextOverlay_BkColor TextOverlay_CreateCustomFont TextOverlay_CreateCustomFont2 TextOverlay_Enabled TextOverlay_Font TextOverlay_FontColor TextOverlay_Left TextOverlay_Right TextOverlay_Scrolling TextOverlay_ScrollingSpeed TextOverlay_Selector TextOverlay_Shadow TextOverlay_ShadowColor TextOverlay_ShadowDirection TextOverlay_String TextOverlay_Top TextOverlay_Transparent TranslateMouseCoordinates