Meir Rivkin
asked on
gradient text
hi experts,
I'm developing custom controls for mobile devices running windows CE 4.2/5.0 (no MFC libs)
having a gradient background is fairly simple, however, i was trying to draw a gradient text on a screen without success.
any ideas?
cheers
I'm developing custom controls for mobile devices running windows CE 4.2/5.0 (no MFC libs)
having a gradient background is fairly simple, however, i was trying to draw a gradient text on a screen without success.
any ideas?
cheers
ASKER
ok, we've decided that since the gradient colors are fixed the best and fastest way is to create the bitmap with the gradient text as a resource.
then using timer, display partial of the bitmap as the time progresses.
my question is how do i implement this in OnTimer()?
then using timer, display partial of the bitmap as the time progresses.
my question is how do i implement this in OnTimer()?
Are you saying you want the text to fade in and out sort of? I'm kind of lost about your last comment... please clarify
ASKER
i'm loading the image and each time i draw only portion of it to the device context.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
itsmeandnobodyelse: 10x for the reply but i need some source code cause i'm pretty 'green' in this area
cheers
cheers
>>>> but i need some source code
Did you use MFC or plain WinAPI? Can you post the OnTimer til now? If you have a handler for WM_PAINT please post it also (normally OnPaint or OnDraw) cause there are different ways to do the same thing.
>>>> i'm loading the image and each time i draw only portion of it to the device context.
Did you write already some piece of code for that?
Regards, Alex
Did you use MFC or plain WinAPI? Can you post the OnTimer til now? If you have a handler for WM_PAINT please post it also (normally OnPaint or OnDraw) cause there are different ways to do the same thing.
>>>> i'm loading the image and each time i draw only portion of it to the device context.
Did you write already some piece of code for that?
Regards, Alex
So basically, type out the entire character set in one long row and then use some gradient effects over the font and save it with a mask color as the background. Then load the bmp and with a fairly simple algorithm extract the specified character for whatever letter you need to draw.
Just my two cents, hope they help!
Brandon