Hi There,
I'm trying the Surface.setMatrix api, however, it acts not same with I
expected when I rotate the matrix.
The code looks like:
matrix.setRotate(degrees, width / 2, height / 2);
matrix.getValues(tmpValues);
Surface.openSession();
surface.setMatrix(tempValues[Matrix.MSCALE_X],
tempValues[Matrix.MSKEW_X],
tempValues[Matrix.MSKEW_Y],
tempValues[Matrix.MSCALE_Y]);
Surface.closeSession();
The usage is extracted from WindowManagerService.java.
Can anyone explain the four parameters of Surface.setMatrix (float
dsdx, float dtdx, float dsdy, float dtdy)?
Thanks a lot!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en