push_color_matrix


Description:

public void push_color_matrix (Matrix color_matrix, Vec4 color_offset)

Modifies the colors of an image by applying an affine transformation in RGB space.

In particular, the colors will be transformed by applying

pixel = transpose(color_matrix) * pixel + color_offset

for every pixel. The transformation operates on unpremultiplied colors, with color components ordered R, G, B, A.

The image is recorded until the next call to [method@Gtk.Snapshot.pop].

Parameters:

this

a `GtkSnapshot`

color_matrix

the color matrix to use

color_offset

the color offset to use