DrawPixelText (class MKI_DISPLAYDATA) Changed in Version 2023.0

www.CAD6.com

C++ Syntax

void

MKI_DISPLAYDATA::DrawPixelText(

 double f_dX,

 double f_dY,

 const LPCWSTR f_pszText,

 __int32 f_nTextMode,

 __int32 f_nTextVertical,

 const D2D1_COLOR_F& f_rTextColor,

 const D2D1_COLOR_F* f_pBackColor = nullptr );

 

Draws a text using the engine defined in the display data.

 

This procedure is usually used in reaction to a call of the MKI_PlugInNotify procedure with either MKI_NOTIFY_DISPLAY_CALLBACK or MKI_NOTIFY_DISPLAY_TEMP.

 

Parameters

X, Y

[double] Coordinates of the text insertion point to be used in screen pixels.

Text

[const LPCWSTR] Text to be drawn.

TextMode

[__int32] States the position of the text relative to the surrounding frame (see MKI_TEXTMODE_*).

TextVertical

[__int32] States the vertical position of the text relative to the insertion point (see MKI_TEXTVERTICAL_*). Only the first 3 values are supported.

TextColor Changed in Version 2023.0

[D2D1_COLOR_F&] Direct2D color in RGB notation with transparency (alpha) information to be used for drawing the text.

BackColor Changed in Version 2023.0

[D2D1_COLOR_F*] Address of a Direct2D color in RGB notation with transparency (alpha) information to be used for filling the text's background. May be nullptr, resulting in non-filled background.

 

CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH