SkMatrix matrix; matrix.setSkewX(30); float skewX = matrix.getSkewX(); // skewX = 30
SkMatrix matrix; matrix.setRotate(45); matrix.postSkew(0.5, 0); float skewX = matrix.getSkewX(); // skewX = 0.41421In this example, we first set the matrix to a rotate transformation, then apply a skew transformation using postSkew(). We then call getSkewX() to retrieve the horizontal skew value. Package/library: Skia graphics library for C++.