Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alexander Golovlev's gpImage GIF resize error
Message
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01067507
Message ID:
01067658
Views:
19
This message has been marked as the solution to the initial question of the thread.
>Gerard,
>
>I know that GDI+ has some dificulties working with some PixelFormats.
>Maybe for this specific case, you can convert your GIF to BMP, resize it, ans SAVEASGIF.
>
>This should work.
>
>If you want, send me the piece of code you are using to do it, and the properties of the GIF you are trying to manipulate.
>
>Does it happen with all GIFs ? Or just some ?
>
>Regards
>cesar

I have try to save to bmp to disk and reloading to no luck, same error on resizing.

But, I have found a workaround:
img.ToClipBoard()
img.FromClipBoard()

This round trip to and from the clipboard convert the image to Bitmap (quickly in memory) and it can be resized without error after that.

Thank for the bmp tip even if it dont have worked directly, this drive me in the right direction.

Thank again :)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Reply
Map
View

Click here to load this message in the networking platform