SkMatrix matrix; // Set up the matrix transformation ... SkRect rect = SkRect::MakeXYWH(0, 0, 100, 50); bool isRect = matrix.rectStaysRect(rect);In this example, a SkMatrix object is created and set up to perform a transformation. A SkRect object is created to represent a rectangle with coordinates (0, 0) and width and height of 100 and 50, respectively. The rectStaysRect function is called on the matrix and the rectangle, and the result is stored in the boolean variable isRect. Package library: Skia Graphics Library.