Skip to main content

composition_transform

Function composition_transform 

Source
pub fn composition_transform(
    size: Vector,
    anchor_point: Vector,
    center_point: Vector,
    transform_matrix: Matrix,
    scale: Vector,
    rotation_angle: f32,
    offset: Vector,
) -> Option<Matrix>
Expand description

The transform of a WinUI clip or brush from its own properties, in the space of an area of size: the anchor point is relative to the size, then the transform matrix, the scale and the rotation about the center point and the offset apply, as for a visual. None for the identity.