Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
SkPDFGraphicState Namespace Reference

Functions

SkPDFIndirectReference GetGraphicStateForPaint (SkPDFDocument *, const SkPaint &)
 
SkPDFIndirectReference GetSMaskGraphicState (SkPDFIndirectReference sMask, bool invert, SkPDFSMaskMode sMaskMode, SkPDFDocument *doc)
 

Function Documentation

◆ GetGraphicStateForPaint()

SkPDFIndirectReference SkPDFGraphicState::GetGraphicStateForPaint ( SkPDFDocument ,
const SkPaint  
)

Get the graphic state for the passed SkPaint.

◆ GetSMaskGraphicState()

SkPDFIndirectReference SkPDFGraphicState::GetSMaskGraphicState ( SkPDFIndirectReference  sMask,
bool  invert,
SkPDFSMaskMode  sMaskMode,
SkPDFDocument doc 
)

Make a graphic state that only sets the passed soft mask.

Parameters
sMaskThe form xobject to use as a soft mask.
invertIndicates if the alpha of the sMask should be inverted.
sMaskModeWhether to use alpha or luminosity for the sMask.

These are not de-duped.