Dear Fred,Is there a reason why non-premmies can't resize pictures? Perhaps can you let us resize pictures in a top secret querystring way like this?
[.image]http://www.url.com/randomimage.jpg?h=200?w=200[/image]
5/1/2011 4:27:29 PM
pay yer god damned 5 bux
5/1/2011 4:54:30 PM
$10I'm AstralAdvent and i approved this message./]
5/1/2011 5:11:57 PM
herp[Edited on May 1, 2011 at 6:09 PM. Reason : derp]
5/1/2011 6:09:33 PM
public void ResizeImage(double scaleFactor, Stream fromStream, Stream toStream){ var image = Image.FromStream(fromStream); var newWidth = (int)(image.Width * scaleFactor); var newHeight = (int)(image.Height * scaleFactor); var thumbnailBitmap = new Bitmap(newWidth, newHeight); var thumbnailGraph = Graphics.FromImage(thumbnailBitmap); thumbnailGraph.CompositingQuality = CompositingQuality.HighQuality; thumbnailGraph.SmoothingMode = SmoothingMode.HighQuality; thumbnailGraph.InterpolationMode = InterpolationMode.HighQualityBicubic; var imageRectangle = new Rectangle(0, 0, newWidth, newHeight); thumbnailGraph.DrawImage(image, imageRectangle); thumbnailBitmap.Save(toStream, image.RawFormat); thumbnailGraph.Dispose(); thumbnailBitmap.Dispose(); image.Dispose();}
5/2/2011 1:34:53 PM
The query string is not the right place to put such parameters; they should go in the tag instead, like
[image=h200w200]http://t.es/t.png[/image]
[link=http://b.it/]bit[/link]
5/4/2011 5:49:18 AM
remove having to give a reason for an edit. Just put some italicized text saying what time it was edited.
5/8/2011 8:43:29 AM