[cairo] Drawing raster

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Wed Apr 20 08:00:45 UTC 2016


On Wed, 20 Apr 2016 10:44:05 +0300, Lome More wrote:

>  Yes I have tried to draw on raster surface and then use it as dawing
> pattern for svg surface, but this way is not very sufficient solution
> and as you have to double your drawing operations ...

No you don’t. The transfer to the final surface is a simple fill
operation.

> plus it will be harder to place rasterized pattern on the exact same
> spot where the drawing operation should be.

No reason why you can’t get 1:1 pixel-accurate placement. Cairo uses
double-precision reals with 52 bits of precision in the mantissa.


More information about the cairo mailing list