|
|
CAIROOPERATOR(3) 1 CAIROOPERATOR(3) The CairoOperator class INTRODUCTION
This is used to set the compositing operator for all cairo drawing operations. The default operator is CairoOperator::OVER The operators marked as unbounded modify their destination even outside of the mask layer (that is, their effect is not bound by the mask layer). However, their effect can still be limited by way of clipping. To keep things simple, the operator descriptions here document the behavior for when both source and destination are either fully trans- parent or fully opaque. The actual implementation works for translucent layers too. For a more detailed explanation of the effects of each operator, including the mathematical definitions, see http://cairographics.org/operators/. CLASS SYNOPSIS
CairoOperator CairoOperator Constants o const integer$CairoOperator::CLEAR0 o const integer$CairoOperator::SOURCE1 o const integer$CairoOperator::OVER2 o const integer$CairoOperator::IN3 o const integer$CairoOperator::OUT4 o const integer$CairoOperator::ATOP5 o const integer$CairoOperator::DEST6 o const integer$CairoOperator::DEST_OVER7 o const integer$CairoOperator::DEST_IN8 o const integer$CairoOperator::DEST_OUT9 o const integer$CairoOperator::DEST_ATOP10 o const integer$CairoOperator::XOR11 o const integer$CairoOperator::ADD12 o const integer$CairoOperator::SATURATE13 PREDEFINED CONSTANTS
o CairoOperator::CLEAR -Clear destination layer (bounded) o CairoOperator::SOURCE -Replace destination layer (bounded) o CairoOperator::OVER -Draw source layer on top of destination layer (bounded) o CairoOperator::IN -Draw source where there was destination content (unbounded) o CairoOperator::OUT -Draw source where there was no destination content (unbounded) o CairoOperator::ATOP -Draw source on top of destination content and only there o CairoOperator::DEST -Ignore the source o CairoOperator::DEST_OVER -Draw destination on top of source o CairoOperator::DEST_IN -Leave destination only where there was source content (unbounded) o CairoOperator::DEST_OUT -Leave destination only where there was no source content o CairoOperator::DEST_ATOP -Leave destination on top of source content and only there (unbounded) o CairoOperator::XOR -Source and destination are shown where there is only one of them o CairoOperator::ADD -Source and destination layers are accumulated o CairoOperator::SATURATE -Like CairoOperator::OVER, but assuming source and dest are disjoint geometries PHP Documentation Group CAIROOPERATOR(3)