|
101.
|
|
|
`size`
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_im:97
|
|
102.
|
|
|
If not None, a (width, height) tuple. If None, this defaults to (:var:`config.screen_width`, :var:`config.screen_height`).
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_im:97
|
|
103.
|
|
|
im.MatrixColor
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/displayables.rst:190
|
|
104.
|
|
|
The im.MatrixColor image manipulator is an image manipulator that uses a matrix to control how the colors of an image are transformed. The matrix used can be an im.matrix object, which encodes a 5x5 matrix in an object that supports matrix multiplication, and is returned by a series of functions. im.matrix objects may be multiplied together to yield a second object that performs both operations. For example, the code::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/displayables.rst:192
|
|
105.
|
|
|
first desaturates the image, and then tints it blue. When the intermediate image is not needed, multiplying matrices is far more efficient, in both time and image cache space, than using two im.MatrixColors.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/displayables.rst:204
|
|
106.
|
|
|
An image operator that uses `matrix` to linearly transform the image manipulator `im`.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:5
|
|
107.
|
|
|
`Matrix` should be a list, tuple, or :func:`im.matrix` that is 20 or 25 elements long. If the object has 25 elements, then elements past the 20th are ignored.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:8
|
|
108.
|
|
|
When the four components of the source color are R, G, B, and A, which range from 0.0 to 1.0; the four components of the transformed color are R', G', B', and A', with the same range; and the elements of the matrix are named::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:12
|
|
109.
|
|
|
the transformed colors can be computed with the formula::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:22
|
|
110.
|
|
|
The components of the transformed color are clamped to the range [0.0, 1.0].
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/im_matrixcolor:29
|