TVideoGrabber.AdjustOverlayAspectRatio


Next

TVideoGrabber

Properties

 




































































































Adjusts the aspect ratio of the video frames before applying the overlays


Declaration
property AdjustOverlayAspectRatio: Boolean read GetAdjustOverlayAspectRatio write SetAdjustOverlayAspectRatio default DEF_AdjustOverlayAspectRatio;


__property bool AdjustOverlayAspectRatio=read=GetAdjustOverlayAspectRatio, write=SetAdjustOverlayAspectRatio, default=1


Property AdjustOverlayAspectRatio As Boolean

Description

Used to adjust the aspect ratio of the video frames before applying the overlays.

This property applies only only when the aspect ratio of the video source does not match the size of the video frames (e.g. a 16x9 aspect ratio for a 720x480 native video size)

AdjustOverlayAspectRatio enabled (requires a few CPU more):

The video frames are resized to their display aspect ratio before the overlays are applied, so the aspect ratio of the overlays is correct.

AdjustOverlayAspectRatio disabled (saves CPU):

The video frames are not resized, the overlays are applied to the native video size.
If the video is displayed to its correct aspect ratio (e.g. when Display_AspectRatio = ar_Box), the video frames will be stretched, including the overlays that may appear distorded.


See Also
TCardinalDirection TOnFrameOverlayUsingDC TOnFrameOverlayUsingDIB TTextOverlayAlign DrawBitmapOverFrame GetFrameInfoString ImageOverlay_StretchToVideoSize 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