The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: G`HOST on February 25, 2006, 07:35:58 AM

Title: Gradient fill....
Post by: G`HOST on February 25, 2006, 07:35:58 AM
Hi all,
How to gradient fill a rectangle or any shape.Any pointers to tutorials (or better) an example would be appreciated.
Thanx.
Title: Re: Gradient fill....
Post by: donkey on February 25, 2006, 12:18:51 PM
There is an API function for this...

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_8oa4.asp
Title: Re: Gradient fill....
Post by: Phoenix on February 26, 2006, 07:03:16 AM
...and also GDI+-Flat-API:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdicpp/GDIPlus/GDIPlusreference/flatlineargradientbrush.asp

Example (CPLG.zip):
http://www.masmforum.com/simple/index.php?topic=1935.0