Closed PAEz closed 11 years ago
I have never used the GDI+ Flat API before, but it looks very interesting. I have created a small GDI+ example based on your code that displays an image in a window. Besides the docs in MSDN, I looked up the function signatures in the C header files of the Windows SDK. As the GDI+ functions only seem to support wide character strings, I have added automatic conversion of JS strings to wide character strings.
Thank You!
Im going to have so much fun with this :P
I wondered if it was the string format thing, but like I said I'm no good at this stuff.....cant do C at all for instance. Talking of which, if you didn't supply compiled bins on your blog I wouldn't have been able to play with this (thank god I went to your blog to check out your motion blur demo, cool), you should put a link to that article, or maybe put the bins on github.
Thanks again, Im sure I can convert a bunch more of the header stuff now and have some fun!
I really did try, but this sorta stuff is beyond me. The only time Ive used the GDI+ stuff before is in AutoIt and PowerBasic, both had all this work done for me. I tried looking for docs, but I dont seem to be able to get much on some gdi+ stuff...like GdipLoadImageFromFile, all I could find was http://msdn.microsoft.com/en-us/library/windows/desktop/ms534041(v=vs.85).aspx ... real helpful....not! Here's my lame attempt....
....plus some of your code above it, to declare what you declared. Playing with images in this could be fun, IF I could get this to work ;)
Oh, and very cool what you've done;