Last post Apr 07, 2008 07:21 PM by Capture_db
Apr 02, 2008 11:50 AM|Capture_db|LINK
Hi i am createing a aspx page that gets a transparent png and basically resises it to make a thumbnail.
I have successfully Manged ot get it working with creatign a Jpeg it reads in the png files fine its just when i am saving it!
public void genThumbNail(string imageUrl, int width, int height,ImageFormat iType)
iThumb = new Bitmap(imageUrl);
iThumb = new Bitmap(defImage);
iThumb = (Bitmap)iThumb.GetThumbnailImage(width, height, new System.Drawing.Image.GetThumbnailImageAbort(thumbResp), IntPtr.Zero);
Response.ContentType = "image/jpeg";
It comes up wit a "generic GDI+" error , also do you know how to make the png transparant( the original is but i want the new resized version to also be transparent)
Apr 03, 2008 03:04 PM|Capture_db|LINK
Apr 07, 2008 07:21 PM|Capture_db|LINK