Ejemplo 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 }));
        }
Ejemplo 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 }));
        }
Ejemplo 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 });
		}
Ejemplo 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 });
 }