Identity is a Matrix that performs no action – to be used whenever the syntax requires a matrix, but no actual transformation should take place. It has the form fitz.Matrix(1, 0, 0, 1, 0, 0).
Identity is a constant, an “immutable” object. So, all of its matrix properties are read-only and its methods are disabled.
If you need a mutable identity matrix as a starting point, use one of the following statements:
>>> m = fitz.Matrix(1, 0, 0, 1, 0, 0) # specify the values >>> m = fitz.Matrix(1, 1) # use scaling by factor 1 >>> m = fitz.Matrix(0) # use rotation by zero degrees >>> m = fitz.Matrix(fitz.Identity) # make a copy of Identity
This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of that license. Refer to licensing information at artifex.com or contact Artifex Software Inc., 39 Mesa Street, Suite 108A, San Francisco CA 94129, United States for further information.