Flutter Engine
The Flutter Engine
|
Functions | |
SK_API bool | Orient (const SkPixmap &dst, const SkPixmap &src, SkEncodedOrigin origin) |
SK_API SkImageInfo | SwapWidthHeight (const SkImageInfo &info) |
template<typename Fn > | |
bool | Orient (const SkPixmap &dst, SkEncodedOrigin origin, Fn &&decode) |
bool SkPixmapUtils::Orient | ( | const SkPixmap & | dst, |
const SkPixmap & | src, | ||
SkEncodedOrigin | origin | ||
) |
Copy the pixels in src into dst, applying the orientation transformations specified by origin. If the inputs are invalid, this returns false and no copy is made.
Definition at line 44 of file SkPixmapUtils.cpp.
bool SkPixmapUtils::Orient | ( | const SkPixmap & | dst, |
SkEncodedOrigin | origin, | ||
Fn && | decode | ||
) |
Decode an image and then copy into dst, applying origin.
dst | SkPixmap to write the final image, after applying the origin. |
origin | SkEncodedOrigin to apply to the raw pixels. |
decode | Function for decoding into a pixmap without applying the origin. |
Definition at line 30 of file SkPixmapUtilsPriv.h.
SkImageInfo SkPixmapUtils::SwapWidthHeight | ( | const SkImageInfo & | info | ) |