LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Help, about CanvasDrawText

Hi, everybody.

 

I want to draw text in XOR mode, but CanvasDrawText cannot support this function.

Who can tell me how to do? Thanks.

 

Tim

2008.08.15

0 Kudos
Message 1 of 3
(3,088 Views)

Set ATTR_PEN_MODE for the Canvas control to VAL_XOR_MODE first. There is a fuller list here.

 

JR

0 Kudos
Message 2 of 3
(3,085 Views)

Hi, JR.

 

Thanks for your help. But I found another question when I checked the CanvasDrawText's help.

CanvasDrawText draws the text using the current value of ATTR_PEN_COLOR.

CanvasDrawText draws the background rectangle using the current value of the following attributes:

ATTR_PEN_FILL_COLOR
ATTR_PEN_MODE
ATTR_PEN_PATTERN

It looks like that CanvasDrawText cannot draw the text in VAL_XOR_MODE, but only use this mode in drawing background rectangle.

Is that ture?

0 Kudos
Message 3 of 3
(3,052 Views)