1,295
edits
No edit summary |
|||
Line 1: | Line 1: | ||
== Class | == Class Context == | ||
Your 2d drawing API. To use this you need to first create a surface and call SetSurface(). | Your 2d drawing API. To use this you need to first create a surface and call SetSurface(). | ||
=== API === | === API === | ||
[http:// | [http://lxr.mozilla.org/mozilla/source/gfx/thebes/public/gfxContext.h gfxContext.h] | ||
=== Filters === | === Filters === | ||
[http:// | [http://lxr.mozilla.org/mozilla/source/gfx/thebes/public/gfxFilter.h gfxFilter.h] | ||
See gfxContext::PushFilter. This API lets clients not worry about what resolution to create a temporary surface at, etc. It is GFX/Cairo's responsibility to choose a good resolution, based on the current transformation. | |||
This API lets clients not worry about what resolution to create a temporary surface at, etc. It is GFX/Cairo's responsibility to choose a good resolution, based on the current transformation. | |||
The way to implement this is to transform maxArea to device coordinates, take its bounding box, and use that as the area for the temporary surface. | The way to implement this is to transform maxArea to device coordinates, take its bounding box, and use that as the area for the temporary surface. |
edits