sorry, never saw this post:D did you figure it out anyways?Quote:
Originally posted by PT Exorcist
hmm im having problems implementing that in a asp.net page im doing(it's in C#):
hmm...do u think the best way is using the GetThumbnail() function or manually resizing them(if yes then how? i didnt found a way of doing so)?PHP Code:Bitmap bm = new Bitmap(Server.MapPath(@"Deviantart\labyrinthine.jpg"));
Bitmap bit = new Bitmap(1,1);
System.Drawing.Image thumbnail = bit;
Graphics g = Graphics.FromImage(thumbnail);
g.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality;
g.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.Half;
thumbnail = bm.GetThumbnailImage(width, height, new System.Drawing.Image.GetThumbnailImageAbort(Thumbnail), IntPtr.Zero);
Response.ContentType = "image/jpeg";
thumbnail.Save(Response.OutputStream, ImageFormat.Jpeg);
set gr.InterpolationMode = InterpolationMode.NearestNeighbor to make the pixels like that...
