ee2a8eede9
NOTRY=true DOCS_PREVIEW= https://skia.org/?cl=1127383010 DOCS_PREVIEW= https://skia.org/user/api?cl=1127383010 DOCS_PREVIEW= https://skia.org/user/api/skcanvas?cl=1127383010 DOCS_PREVIEW= https://skia.org/user/api/skpaint?cl=1127383010 DOCS_PREVIEW= https://skia.org/user/api/skrect?cl=1127383010 DOCS_PREVIEW= https://skia.org/user/api/skregion?cl=1127383010 DOCS_PREVIEW= https://skia.org/user/api/skmatrix?cl=1127383010 DOCS_PREVIEW= https://skia.org/user/api/canvas?cl=1127383010 Review URL: https://codereview.chromium.org/1127383010
364 B
364 B
SkMatrix
3x3 transforms
Skia is a 2D graphics engine, but it supports a full 3x3 transformation matrix. This allow it to draw anything (bitmaps, text, rectangles, paths) in perspective. SkCamera is a helper class that models a camera in 3D, and can be used to generate the proper matrix for a given 3D view of the plane.