SkMatrix matrix; matrix.setScale(2.0f, 3.0f);
SkMatrix matrix; matrix.setScale(2.0f, 2.0f, point.x(), point.y());This code sets the x and y scale factors of the matrix to 2.0f with the specified point as the pivot point. The SkMatrix class is included in the Skia Graphics Library.