Делаю ресайз картинок
С JPG и PNG проблем нет:
- Код: Выделить всё
Dim myThumbnail As New Bitmap(FilePath)
Dim w = myThumbnail .Width
Dim h = myThumbnail .Height
Dim kf = Math.Min(Math.Min(ThumbnailWidth / w, ThumbnailHeight / h), 1)
Dim newW As Integer = w * kf, newH As Integer = h * kf
Dim b As System.Drawing.Bitmap
Dim g As System.Drawing.Graphics
b = New System.Drawing.Bitmap(newW, newH, Imaging.PixelFormat.Format32bppRgb)
g = System.Drawing.Graphics.FromImage(b)
g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic
g.DrawImage(myThumbnail, 0, 0, newW, newH)
g.Dispose()
myThumbnail = b
myThumbnail.Save(SavePath, ImgFormat)
для GIF если делать так же то получаю все в крапочку...
Понимаю, что надо самой высчитывать палитру и подставлять ее..
Но вот как эту палитру получить...
Пытаюсь делать вот по этому примеру http://support.microsoft.com/kb/319061/en-us/ но с переводом на VB.Net тоже как-то не клеится

Помогите советами плиз
