Cant you use GDI (System.Drawing namespace) under Medium Trust? Heres what I used in a recent project:
Code:
Public Shared Sub ResizeImage(ByRef image As Bitmap, ByVal width As Integer, ByVal height As Integer, Optional ByVal antiAlias As Boolean = False)
Dim NewImage As New Bitmap(width, height)
Dim Graphics As Graphics = Drawing.Graphics.FromImage(NewImage)
If antiAlias Then Graphics.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBilinear
Graphics.DrawImage(image, 0, 0, width, height)
image = NewImage
End Sub
...set the antiAlias boolean for high quality resizing.
Bookmarks