Package: gsk

Function gsk:texture-scale-new

Lambda List

gsk:texture-scale-new (texture bounds filter)

Arguments

texture -- a gdk:texture object to scale
bounds -- a graphene:rect-t instance with the size of the texture to scale to
filter -- a gsk:scaling-filter value how to scale the texture

Return Value

The new gsk:texture-scale-node instance.

Details

Creates a node that scales the texture to the size given by the bounds using the filter and then places it at the bounds’ position. Note that further scaling and other transformations which are applied to the node will apply linear filtering to the resulting texture, as usual.

This node is intended for tight control over scaling applied to a texture, such as in image editors and requires the application to be aware of the whole render tree as further transforms may be applied that conflict with the desired effect of this node.

Since 4.10
 

See also

#2024-11-16