[cairo] Confusion on Windows (re-send)
Mohit Sindhwani
ml3p at onghu.com
Fri Aug 7 04:00:04 PDT 2009
Gerdus van Zyl wrote:
> Sure you can have an offscreen surface, you can even let cairo create
> it for you using the main win32 surface and calling create_similar.
> Cairo in the win32 backend uses GDI if possible but if you are more
> comfortable using raw GDI calls you can.
>
Thanks Gerdus,
I just got it completed. I actually used a mix of things.
I used the Windows CE functions to do the usual buffered output bit:
* Create compatible DC
* Create compatible bitmap
* SelectObject - dc, bitmap
* Create Cairo Win32 Surface using compatible DC
* Create Cairo context with above surface
*
* ... RENDER ...
*
* For animation - in a Loop {
BitBlt from compatible DC to real DC
}
* Clear all
It works great! Thanks for your help.
Cheers,
Mohit.
2009/08/07 | 18:59.
More information about the cairo
mailing list