ScaleToAspect() публичный статический Метод

public static ScaleToAspect ( Gdk orig, int width, int height ) : Gdk.Pixbuf
orig Gdk
width int
height int
Результат Gdk.Pixbuf
Пример #1
0
        public void SetThumbnail(Gdk.Pixbuf source)
        {
            // Then create the thumbnail
            // The DCF spec says thumbnails should be 160x120 always
            Gdk.Pixbuf thumbnail  = PixbufUtils.ScaleToAspect(source, 160, 120);
            byte []    thumb_data = PixbufUtils.Save(thumbnail, "jpeg", null, null);

            // System.Console.WriteLine ("saving thumbnail");

            // now update the exif data
            ExifData.Data = thumb_data;
        }