iOSGraphics.DrawImage

From Xojo Documentation

Method

iOSGraphics.DrawImage(pic As iOSImage, x As Double, y As Double)

Supported on Mobile(iOS).

Draws the specified image at the x and y coordinates.


Method

iOSGraphics.DrawImage(pic As iOSImage, x As Double, y As Double, width As Double, height As Double)

Supported on Mobile(iOS).

Draws the specified image at the x and y coordinates, scaling the image to the specified width and height.


Method

iOSGraphics.DrawImage(pic As iOSBitmap, x As Double, y As Double)

Supported on Mobile(iOS).

Draws the specified bitmap at the x and y coordinates.


Method

iOSGraphics.DrawImage(pic As iOSBitmap, x As Double, y As Double, width As Double, height As Double)

Supported on Mobile(iOS).

Draws the specified bitmap at the x and y coordinates, scaling the image to the specified width and height.

Sample Code

From within an iOSCanvas.Paint event handler:

// MyPicture is an image added to the project
g.DrawImage(MyPicture, 0, 0)

// Draw image at half its original size
g.DrawImage(MyPicture, 0, 0, MyPicture.Width / 2, MyPicture.Height / 2)