drawing question with HDC & mask / how to use a gray scale mask bitmap with HDC?

L

Lloyd Dupont

I'm using ScriptTextOut function to do some styled international text
drawing char by char (glyph by glyph dare I say), along a curves or things
like that.

Anyway I just discovered ScriptTextOut only display black glyph, regardless
my current HPEN or HBRUSH.

(Note: I cannot use ExtTextOut as char by char drawing is losing glyph
replacement)

So I have 2 question:
-1. is there a way to select a color for the output of ScriptTextOut?

-2. I was thinking to draw to a gray scaled HBITMAP as a drawing mask, brush
it and then render the result.
Any advice on how to do that using plain GDI / win32 call?
 
W

William DePalo [MVP VC++]

Lloyd Dupont said:
I'm using ScriptTextOut function to do some styled international text
drawing char by char (glyph by glyph dare I say), along a curves or things
like that.

Anyway I just discovered ScriptTextOut only display black glyph,
regardless my current HPEN or HBRUSH.

Did you call SetTextColor()?

Regards,
Will
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top