[Mono-dev] Scale image

Martin Ibarra mic at unixmexico.org
Wed Jun 3 03:56:30 EDT 2009


now i am working with a image but not work the scale.

i use the, Gtk.Image image1;

but the image1.Pixbuf.SimpleScale() this method not work when i save the
image.

here the code.



           image1.File = "/home/mic/shadow.png";
           image1.Pixbuf.ScaleSimple(30,40, InterpType.Nearest);
            image1.Pixbuf.Save("/home/mic/abcdx", "png");
            image1.Show();

 this make the image "abcdx.png" but with the same size of  shadow.png.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090603/bdd88005/attachment-0001.html 


More information about the Mono-devel-list mailing list