[cairo] copy cairo surface content to a bitmap cont'd..

Alexander Shulgin alex.shulgin at gmail.com
Thu Feb 18 23:57:05 PST 2010


On Thu, Feb 18, 2010 at 18:33, John McCullough <john at cobainltd.com> wrote:
> Hi list,
>
> I’d posted earlier today to ask about how to copy a cairo surface into a
> pre-existing buffer.
>
>
>
> I’ve made some progress, as below, but my bitmap is rendered upside down and
> back to front.  This is to be expected, due to the bottom up format of the
> Bitmap format.
>
>
>
> Flipping every bitmap is expensive, and I’d like to avoid doing that.  My
> use of cairo is probably incorrect, I think I may need to use an alternative
> to creating a DIB etc..

If you don't really use the DIB structure of the image data, why don't
you just use cairo_image_surface_create()?

--
Alex


More information about the cairo mailing list