Re: GD and Win32Lib

new topic     » goto parent     » topic index » view thread      » older message » newer message

Greg Haberek wrote:
> 
> 
> I'm trying to use GD with Win32Lib, and I'd like to paint a GD image onto a
> Window. So I created a function called gdToDib(), which I copied from
> createDIB()
> and pulled information from the gdImagePtr structure. Most of it worked, but
> the image comes out skewed about 45 degrees to the left. Could someone please
> help me with this? Please? :)
> 

You were lucky that anything showed up at all. The data is not stored the
   same way Windows expects it to be. You also missed a member in the gdImage
   structure.

Here's a copy of the program that should work. I also added truecolour
   support.
   http://files.upl.silentwhisper.net/upload1/gdtodib.zip

> It requires Win32Lib and GD obviously.
> 
> Thanks,
> ~Greg

~[ WingZone ]~
http://wingzone.tripod.com/

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu