|
-
Oct 30th, 2003, 12:26 AM
#1
how can I edit a gif file? CONFUSED AGAIN!
Well I can edit JPG files perfectly fine, but I tried a GIF file and I get this error:
A Graphics object cannot be created from an image that has an indexed pixel format.
I'm obviously trying to create a graphics object from the GIF image.
I've tried loading the GIF by using both of these methods:
dim img as image = image.fromfile(gifFile)
dim bmp as new bitmap(gifFile)
both will result the same. I'm wondering how I can "convert" the indexed format to a normal image so it can be edited with the Graphics class. There should certainly be a way, but I'm clueless
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|