|
-
December 15th, 2009, 04:46 AM
#1
GDI DrawBitmap
Hey everyone, I've been working on a graph lately, and I've noticed in a few defraggers they have something where the images drawn look like they're kind of white'd out on one edge to give it a sorta cool look.
Here are some examples:

If you look at the pic above, you'll notice the white at the top of the drawn colors.

With the pic above it has it on the bottom edge.
So how can I do the white fade when drawing in MFC?
-
December 15th, 2009, 08:42 AM
#2
Re: GDI DrawBitmap
Draw it witha lighter color
The color blending is an indication of the underlying prostitution system.
-
December 15th, 2009, 09:03 AM
#3
-
December 15th, 2009, 12:05 PM
#4
Re: GDI DrawBitmap
 Originally Posted by hoxsiew
Do you mean a gradient?
Yes. Thats the name, I had forgot.
-
December 15th, 2009, 12:53 PM
#5
Re: GDI DrawBitmap
In GDI+, you can create a gradient brush which is handy. In GDI, it's a bit more complicted. You use GradientFill() with a couple of structures to define the gradient and a RECT to fill. Here's some info from MSDN:
http://msdn.microsoft.com/en-us/libr...57(VS.85).aspx
-
December 15th, 2009, 01:43 PM
#6
Re: GDI DrawBitmap
 Originally Posted by hoxsiew
In GDI+, you can create a gradient brush which is handy. In GDI, it's a bit more complicted. You use GradientFill() with a couple of structures to define the gradient and a RECT to fill. Here's some info from MSDN:
http://msdn.microsoft.com/en-us/libr...57(VS.85).aspx
Alright great, thanks for the information. I was thinking of using a brush to draw the individual lines, but it looks like I'll have to do the GradientFill and make sure its just 1 pixel wide with GDI+.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|