PC Review


Reply
Thread Tools Rate Thread

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

 
 
Lloyd Dupont
Guest
Posts: n/a
 
      22nd Aug 2005
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?


 
Reply With Quote
 
 
 
 
William DePalo [MVP VC++]
Guest
Posts: n/a
 
      22nd Aug 2005
"Lloyd Dupont" <net.galador@ld> wrote in message
news:%(E-Mail Removed)...
> 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


 
Reply With Quote
 
Lloyd Dupont
Guest
Posts: n/a
 
      22nd Aug 2005
No, I haven't.
Seems like a good idea, hey!
Thanks mate!

"William DePalo [MVP VC++]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "Lloyd Dupont" <net.galador@ld> wrote in message
> news:%(E-Mail Removed)...
>> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete a custom mask from the Input Mask Wizard johnsweet Microsoft Access 1 14th Feb 2010 08:04 PM
Mask Question paduanow Microsoft Access 3 10th Sep 2009 12:42 PM
Net Mask Question mcp6453 Windows XP Networking 7 2nd Jan 2008 08:47 PM
Input mask question =?Utf-8?B?R29yZHk=?= Microsoft Access 1 17th Feb 2007 03:28 PM
Re: Input mask question John Nurick Microsoft Access Database Table Design 0 15th Jul 2004 09:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:16 PM.