creating an image or a in memory buffer from a cairo context

i have a cairo context created from a gdk window (GDKDrawable). i
would like to get this in a buffer or store it to a png. i could not
create an api to create a cairo surface from a cairo context based on
iam new to cairo and hence may be missng something basic.
Any inputs would be greatly helpful


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]