Posts tagged 'gdi'
Indexed pixel format problem in GDI+
Exception : "A Graphics object cannot be created from an image that has an indexed pixel format". this exception happed in my application while trying to draw string on a .gif image, I read about this problem and found in MSDN that: If the image has an indexed pixel format, this method throws...
Continue reading "Indexed pixel format problem in GDI+"
Trick to resize transparent images
I wanted to make a small image resize function in my asp.net website, and everything worked fine, but i faced a problem resizing transparent .png and .gif images. After resizing done, i find that the output resized images transparent parts become white color and not transparent anymore. This was my code...
Continue reading "Trick to resize transparent images"


