iOSGraphics.Scale

From Xojo Documentation

Method

iOSGraphics.Scale(scaleX As Double, scaleY As Double)

Supported on Mobile(iOS).

Sets the scale for the graphics context as specified scaleX and scaleY. This only affects subsequent drawing. Any drawing done before the Scale method is called is not scaled.

Sample Code

From within an iOSCanvas.Paint event handler:

g.Scale(2.0, 4.0)
g.FillColor = Color.Blue
g.FillRect(10, 10, 10, 10) // The squares scales to a rectangle