[cairo] Confusion on Windows (re-send)

Gerdus van Zyl gerdusvanzyl at gmail.com
Fri Aug 7 00:51:02 PDT 2009


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.

~G

On Fri, Aug 7, 2009 at 3:13 AM, Mohit Sindhwani<ml3p at onghu.com> wrote:
> Gerdus van Zyl wrote:
>>
>> Well you need a timer or a loop, then every few miliseconds you simply
>> move the image a little closer to where it should be at the end. You
>> draw as you usually do in cairo.
>>
>> See this excellent article on the matter:
>> http://www.robertpenner.com/easing/penner_chapter7_tweening.pdf and
>> http://www.robertpenner.com/easing/
>
> Thanks Gerdus,
>
> Wouldn't it be better if we drew the image once into an off-screen buffer
> and BitBlt only portions of it, rather than redraw different  sizes since
> the redrawing is likely to be more expensive?
>
> Cheers,
> Mohit.
> 2009/08/07 | 9:13.
>
>


More information about the cairo mailing list