Function Context.maskSurface

A drawing operator that paints the current source using the alpha channel of surface as a mask. (Opaque areas of surface are painted with the source, transparent areas are not painted.)

Prototypes

void maskSurface(
  Surface surface,
  Point!(double) location
);

void maskSurface(
  Surface surface,
  double x,
  double y
);

Parameters

NameDescription
location coordinates at which to place the origin of surface

Authors

Johannes Pfau cairoD
Andrej Mitrovic cairoD
cairo team cairo

Copyright

License

cairoD wrapper/bindings Boost License 1.0
cairo LGPL 2.1 / MPL 1.1