[Mono-list] How can I copy one drawable into another?
Jonathan Pobst
monkey at jpobst.com
Tue Nov 16 18:20:18 EST 2010
Whoops, I guess that was an extension method I wrote:
public static void DrawPixbuf (this Context g, Gdk.Pixbuf pixbuf, Point
dest)
{
g.Save ();
Gdk.CairoHelper.SetSourcePixbuf (g, pixbuf, dest.X, dest.Y);
g.Paint ();
g.Restore ();
}
Jonathan
On 11/16/2010 5:09 PM, Francisco M. Marzoa wrote:
> Hello,
>
> Hmmmmmmm... My Cairo.Context seems to not have a DrawPixbuf function :-/
>
> Regards,
>
>
> El 16/11/10 21:43, Jonathan Pobst escribió:
>> Once you have it in a PixBuf, just paint it onto your ImageSurface:
>>
>> using (Cairo.Context g = new Cairo.Context (mySurface)) {
>> g.DrawPixbuf (mypixbuf, new Cairo.Point (0, 0));
>> }
>>
>>
>> Jonathan
>
>
>
More information about the Mono-list
mailing list