Class

iOSBitmap


Warning

This item was deprecated in version 2020r2. Please use Picture as a replacement.

Description

A bitmap image that can be modified using the Graphics property.

Properties

Name

Type

Read-Only

Shared

Graphics

iOSGraphics

Height

UInteger

Image

iOSImage

Scale

Double

Width

UInteger

Methods

Name

Parameters

Returns

Shared

Constructor

width As Integer, height As Integer, scale As Double, opaque As Boolean = False

Property descriptions


iOSBitmap.Graphics

Graphics As iOSGraphics

The iOSGraphics object for the bitmap that is used for drawing.

This property is read-only.

Var pic As New iOSBitmap(100, 100, 2.0, False)
pic.Graphics.DrawRect(10, 10, 60, 60)

iOSBitmap.Height

Height As UInteger

The height of the bitmap that was created.

This property is read-only.


iOSBitmap.Image

Image As iOSImage

The image that has been drawn to the bitmap. If you need to modify the image, use the Graphics property.

This property is read-only.


iOSBitmap.Scale

Scale As Double

The scale of the image that has been drawn to the bitmap.

This property is read-only.


iOSBitmap.Width

Width As UInteger

The width of the image that has been drawn to the bitmap.

This property is read-only.

Method descriptions


iOSBitmap.Constructor

Constructor(width As Integer, height As Integer, scale As Double, opaque As Boolean = False)

Note

Constructors are special methods called when you create an object with the New keyword and pass in the parameters above.

Creates a bitmap image using the specified width, height, scale and opaqueness.

Setting opaque to True disables the alpha channel. If you know that you wil be filling every point in the bitmap, set opaque to True to improve performance.

The scale indicates how the image appears on the device. For example, bitmaps drawn with a scale of 1.0 will appear at half the size when drawn on a device with a 2x screen. When creating an iOSBitmap you intend to put on screen, you want your bitmap to have the same scale factor as the screen and the number of pixels in each dimension multiplied by the scale factor. Use the example code on the Declare page to check the device scale.

Var pic As New iOSBitmap(100, 100, 2.0, False)
pic.Graphics.DrawRect(10, 10, 60, 60)

Compatibility

iOS projects on the iOS operating system.

See also

Object parent class; iOSGraphics, Picture classes