T
tamasumalta
I would like to change some pixels inside a particular gif file. I
tried using the setpixel and noticed that it is not compatible with
indexed images. Then I converted the file from a gif to a bmp using the
following syntax
imgDiskImage.Save(sNewFile, imgFormat)
Altough the file was converted it failed again when setpixel was called
in the statement
BMImage.SetPixel(Xindex, Yindex, Color.Cyan)
The error message in all the occasions is -
SetPixel is not supported for images with indexed pixel formats.
If I have converted the file to bitmap image why it is still failing?
What I should change? BMImage as declared as
Dim BMImage As Bitmap = CType(Image.FromFile(StrFileNamePath), Bitmap)
I have opened a bmp file created by windows paint and there were no
issues with the setpixel. So I've tried converting the gif file with
Microsoft Office Picture Manager to a bmp but this also failed.
Strange
Thanks
Jansen
tried using the setpixel and noticed that it is not compatible with
indexed images. Then I converted the file from a gif to a bmp using the
following syntax
imgDiskImage.Save(sNewFile, imgFormat)
Altough the file was converted it failed again when setpixel was called
in the statement
BMImage.SetPixel(Xindex, Yindex, Color.Cyan)
The error message in all the occasions is -
SetPixel is not supported for images with indexed pixel formats.
If I have converted the file to bitmap image why it is still failing?
What I should change? BMImage as declared as
Dim BMImage As Bitmap = CType(Image.FromFile(StrFileNamePath), Bitmap)
I have opened a bmp file created by windows paint and there were no
issues with the setpixel. So I've tried converting the gif file with
Microsoft Office Picture Manager to a bmp but this also failed.
Strange
Thanks
Jansen