Hi,
i would like to ask how i could resize an image from the project resources
inside an image widget control.

What i am doing for the moment is loading the image and try to resize it by
assigning hard coded width and height values, but the image does not render
with the specified width and height but with its original values.

//create image from resource
Image img = new Image (myAssembly, "resourceImageId");

//resize image
img.WidthRequest = 50;
img.HeightRequest = 150;

//assign image to image widget
imgControl.PixBuf = img.PixBuf();

Any ideas?

thanks in advance
-- 
View this message in context: 
http://old.nabble.com/Image-resize-on-image-widget-control-tp26791414p26791414.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to