Flutter Engine
The Flutter Engine
|
#include "include/core/SkMatrix.h"
Go to the source code of this file.
Enumerations | |
enum | SkEncodedOrigin { kTopLeft_SkEncodedOrigin = 1 , kTopRight_SkEncodedOrigin = 2 , kBottomRight_SkEncodedOrigin = 3 , kBottomLeft_SkEncodedOrigin = 4 , kLeftTop_SkEncodedOrigin = 5 , kRightTop_SkEncodedOrigin = 6 , kRightBottom_SkEncodedOrigin = 7 , kLeftBottom_SkEncodedOrigin = 8 , kDefault_SkEncodedOrigin = kTopLeft_SkEncodedOrigin , kLast_SkEncodedOrigin = kLeftBottom_SkEncodedOrigin } |
Functions | |
static SkMatrix | SkEncodedOriginToMatrix (SkEncodedOrigin origin, int w, int h) |
static bool | SkEncodedOriginSwapsWidthHeight (SkEncodedOrigin origin) |
enum SkEncodedOrigin |
Definition at line 14 of file SkEncodedOrigin.h.
|
inlinestatic |
Return true if the encoded origin includes a 90 degree rotation, in which case the width and height of the source data are swapped relative to a correctly oriented destination.
Definition at line 50 of file SkEncodedOrigin.h.
|
inlinestatic |
Given an encoded origin and the width and height of the source data, returns a matrix that transforms the source rectangle with upper left corner at [0, 0] and origin to a correctly oriented destination rectangle of [0, 0, w, h].
Definition at line 32 of file SkEncodedOrigin.h.