Flutter Engine
The Flutter Engine
|
Functions | |
std::unique_ptr< SkImageGenerator > | MakeFromEncoded (sk_sp< SkData > data, std::optional< SkAlphaType > at) |
std::unique_ptr< SkImageGenerator > | MakeFromPicture (const SkISize &, sk_sp< SkPicture >, const SkMatrix *, const SkPaint *, SkImages::BitDepth, sk_sp< SkColorSpace >, SkSurfaceProps props) |
std::unique_ptr< SkImageGenerator > | MakeFromPicture (const SkISize &, sk_sp< SkPicture >, const SkMatrix *, const SkPaint *, SkImages::BitDepth, sk_sp< SkColorSpace >) |
std::unique_ptr< SkImageGenerator > SkImageGenerators::MakeFromEncoded | ( | sk_sp< SkData > | , |
std::optional< SkAlphaType > | = std::nullopt |
||
) |
If the default image decoder system can interpret the specified (encoded) data, then this returns a new ImageGenerator for it. Otherwise this returns NULL. Either way the caller is still responsible for managing their ownership of the data. By default, images will be converted to premultiplied pixels. The alpha type can be overridden by specifying kPremul_SkAlphaType or kUnpremul_SkAlphaType. Specifying kOpaque_SkAlphaType is not supported, and will return NULL.
Definition at line 35 of file SkImageGenerator_FromEncoded.cpp.
std::unique_ptr< SkImageGenerator > SkImageGenerators::MakeFromPicture | ( | const SkISize & | size, |
sk_sp< SkPicture > | picture, | ||
const SkMatrix * | matrix, | ||
const SkPaint * | paint, | ||
SkImages::BitDepth | bitDepth, | ||
sk_sp< SkColorSpace > | colorSpace | ||
) |
Definition at line 28 of file SkPictureImageGenerator.cpp.
std::unique_ptr< SkImageGenerator > SkImageGenerators::MakeFromPicture | ( | const SkISize & | size, |
sk_sp< SkPicture > | picture, | ||
const SkMatrix * | matrix, | ||
const SkPaint * | paint, | ||
SkImages::BitDepth | bitDepth, | ||
sk_sp< SkColorSpace > | colorSpace, | ||
SkSurfaceProps | props | ||
) |
Return a new image generator backed by the specified picture. If the size is empty or the picture is NULL, this returns NULL. The optional matrix and paint arguments are passed to drawPicture() at rasterization time.
Definition at line 38 of file SkPictureImageGenerator.cpp.