Esempio n. 1
0
        public override object ConvertToBitmap(ImageDescription idesc, double scaleFactor, ImageFormat format)
        {
            var img = (GtkImage)idesc.Backend;
            var f   = new GtkImage.ImageFrame(img.GetBestFrame(ApplicationContext, scaleFactor, idesc, true), (int)idesc.Size.Width, (int)idesc.Size.Height, true);

            return(new GtkImage(new GtkImage.ImageFrame [] { f }));
        }
Esempio n. 2
0
        public override object ConvertToBitmap(object handle, double width, double height, double scaleFactor, ImageFormat format)
        {
            var img = (GtkImage)handle;
            var f   = new GtkImage.ImageFrame(img.GetBestFrame(ApplicationContext, scaleFactor, width, height, true), (int)width, (int)height, true);

            return(new GtkImage(new GtkImage.ImageFrame [] { f }));
        }
Esempio n. 3
0
		public override object ConvertToBitmap (object handle, double width, double height, double scaleFactor, ImageFormat format)
		{
			var img = (GtkImage) handle;
			var f = new GtkImage.ImageFrame (img.GetBestFrame (ApplicationContext, scaleFactor, width, height, true), (int)width, (int)height, true);
			return new GtkImage (new GtkImage.ImageFrame [] { f });
		}
Esempio n. 4
0
 public override object ConvertToBitmap(ImageDescription idesc, double scaleFactor, ImageFormat format)
 {
     var img = (GtkImage) idesc.Backend;
     var f = new GtkImage.ImageFrame (img.GetBestFrame (ApplicationContext, scaleFactor, idesc, true), (int)idesc.Size.Width, (int)idesc.Size.Height, true);
     return new GtkImage (new GtkImage.ImageFrame [] { f });
 }