Powerbasic Museum 2020-B

IT-Consultant: Patrice Terrier => Discussion => Topic started by: Frank Kelley on September 29, 2010, 01:22:45 AM

Title: Help on GDI+ Routines
Post by: Frank Kelley on September 29, 2010, 01:22:45 AM
I have a client who has asked me to construct a program under PowerBASIC to do the following:


My experience with GDI+ has been limited to opening files in one format and converting to another (e.g.: .BMP to .JPG). Looking at the GDI+ API, it's difficult to know where to begin. Jose suggested I ask here for some pointers on which GDI+ routines to use to achieve my client's goals.

Any help is sincerely appreciated.
Title: Re: Help on GDI+ Routines
Post by: Patrice Terrier on September 29, 2010, 08:21:53 AM
Changing the pixel color could be done working directly with the bitmap stored in memory.
You can learn how to perform color conversion computation here. (http://www.easyrgb.com/math.php?MATH=M19#text19)

Now if you don't want to do all the hard work yourself, then consider using GDImage, and see the PhotoSetup project here. (http://www.jose.it-berater.org/smfforum/index.php?topic=2341.0)
Note: GDImage uses matrix computation to perform the color conversion.

...