// Set VG_MATRIX_MODE to VG_MATRIX_PATH_USER_TO_SURFACE
vg11.vgSeti(VG10.VG_MATRIX_MODE, VG10.VG_MATRIX_PATH_USER_TO_SURFACE);
// Load a clean identity matrix
vg11.vgLoadIdentity();
// Calculate scale factor
final float scaleFactor =
Math.min(_displayHeight / PATHS_IMAGE_HEIGHT, _displayWidth
/ PATHS_IMAGE_WIDTH);