Skip to content

TranslateMouseCoordinates

property

Delphi
property TranslateMouseCoordinates: Boolean read GetTranslateMouseCoordinates write SetTranslateMouseCoordinates  default DEF_TranslateMouseCoordinates;
C++Builder
__property bool TranslateMouseCoordinates = {read=GetTranslateMouseCoordinates, write=SetTranslateMouseCoordinates, default=1};
C#
public bool TranslateMouseCoordinates { get; set; }
VB.NET
Public Property TranslateMouseCoordinates As Boolean
C++/Qt
BOOL GetTranslateMouseCoordinates ();
void SetTranslateMouseCoordinates (BOOL Value);

Converts mouse coordinates of OnMouseMove , OnMouseDown and OnMouseUp into their corresponding native video coordinates. This property is used when drawing over video frames using mouse coordinates returned by mouse events and the preview zoom size is not 100%.

  • when this property is disabled, the mouse events return the zoomed coordinates, which do not match the native coordinates necessary to draw over frames from the OnFrameOverlayUsingDC event.

  • when this property is enabled, OnMouseMove , OnMouseDown and OnMouseUp always return the native video coordinates, regardless of the preview zoom size.