Skip to main content

CanvasPropertyDeviceTransform

Type

operator

Summary

The current device transform of the canvas.

Syntax

the device transform of <mCanvas>

Description

The device transform of the canvas. Drawing operations on mCanvas will be modified by the transform before rendering to the underlying pixel buffer.

Parameters

NameTypeDescription

mCanvas

An expression which evaluates to a canvas.

Examples

// Modify the canvas transform
translate this canvas by [50, 100]

// Get the resulting transform
variable tTransform as Transform
put the device transform of this canvas into tTransform
Thank you for your feedback!

Was this page helpful?