[cairo] Drawing into a memory block
John Ellson
ellson at research.att.com
Thu Apr 14 04:27:42 PDT 2005
Jonathan Roewen wrote:
>Hi,
>
>How do I get cairo to draw into a block of memory representing my
>linear frame buffer?
>
>I'm trying to get one of the snippets to draw into the memory and have
>it displayed onscreen (without buffering), but nothing appears to be
>drawn.
>
>The function I'm using to create the surface is:
>cairo_image_surface_create_for_data(gfx_info->video_base, ....); where
>video_base is pointer to LFB.
>
>However, I'm having trouble finding exactly what I need in the
>documention, so I'm not sure where I'm going wrong...
>
>Kindest Regards,
>
>Jonathan Roewen
>_______________________________________________
>cairo mailing list
>cairo at cairographics.org
>http://lists.freedesktop.org/mailman/listinfo/cairo
>
>
>
Are you having the same problem that I had. That "_for_" in the API
names really means "_from_" ?
This function is (I suspect) for reading from memory data; not to set
up for output to memory.
John
More information about the cairo
mailing list