Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using GDI+ for changes from color to Gray
Message
From
05/05/2008 11:44:29
 
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01315104
Message ID:
01315138
Views:
21
>Check http://weblogs.foxite.com/vfpimaging/archive/2006/02/13/1139.aspx
>
>>May i know how to using GDI+ to changes JPG file from color to 16 Grays ?
>>Any help would be appreicated.

Thanks Sergey,

In fact, the article that Sergey pointed is an old one, before GdiPlusX was released. In that times I created a subclass of GPIMAGE from _GdiPlus.vcx that added the ImageAttributes class, that facilitates creating effects with GDI+


The most recommended resorce for this task is a more recent article in UTMAG:

Special effects on images with new GDIPlus-X classes - Part 2
http://www.utmag.com/ViewPageArticle.aspx?Session=76616B4D7A654864476D593D204E7834377858773754753374697357646432567761773D3D

The first part contains some interesting tips as well:

Special effects on images with new GDIPlus-X classes - Part 1
http://www.utmag.com/ViewPageArticle.aspx?Session=53765263314B62777A61493D2049536458442F42433865523147482B42487A4B514E673D3D


As you want to have only 16 colors in GrayScale, some adaptations will be needed in thecode, but this is not complicated.

Hope this helps

Cesar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform