[Gtk-sharp-list] Scale a pixmap

farolfo farolfo at hotmail.com
Mon Feb 8 04:01:45 EST 2010

I mean pixmap gtk object not pixmap image. I know ScaleSimple function of
pixbuf. I am making a simple videogame and I am using this function to
update display

public void UpdateScreen(ref Pixmap buffer, ref Gdk.GC GraphicContest)
ScreenSurface.GdkWindow.DrawDrawable(GraphicContest, buffer, 0, 0, 0, 0,
ScreenRectangle.Width, ScreenRectangle.Height);


If I want to go fullscreen with my application I need to resize buffer
object but that is a pixmap and I dont understand how I can resize it

David Cantin-2 wrote:
> You should have a loot at
> Pixbuf :: ScaleSimple(newWidth, newHeight, InterpType)
> which will return the resized pixbuf
> David

View this message in context: http://old.nabble.com/Scale-a-pixmap-tp27474898p27496965.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

More information about the Gtk-sharp-list mailing list