Re: GD and Win32Lib
- Posted by Elliott Sales de Andrade <quantum_analyst at hotmail.com> Dec 29, 2005
- 437 views
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/