vgSeti(VG_MATRIX_MODE, VG_MATRIX_PATH_USER_TO_SURFACE); vgLoadIdentity(); vgTranslate(10.0f, -20.0f); vgRotate(50.0f); vgScale(-1.5f, 0.9f); vgShear(1.2f, -0.4f); m[0] = 0.5f; m[1] = -0.5f; // this value will be forced (by OpenVG specifications to 0) m[2] = 999.0f; m[3] = 10.3f; m[4] = -20.0f; // this value will be forced (by OpenVG specifications to 0) m[5] = -999.0f; m[6] = 5.0f; m[7] = 0.0f; // this value will be forced (by OpenVG specifications to 1) m[8] = 999.0f; vgMultMatrix(m); vgGetMatrix(m); writeFloats(f, m, 9, "VG_MATRIX_PATH_USER_TO_SURFACE");