Method

Picture.SystemImage(name As String, size As SystemImageSizes = SystemImageSizes.dp24, templateColor As Color = &c000000) As Picture


Warning

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

Description

This method retrieves an image based upon the parameters passed.

On Android, the image comes from a library of images built-in to the Xojo Android framework. There are over more than 2000 images available.

Sizes 18, 24, 36 and 48 are supported for Android.

Enum

Description

dp18

18 display points

dp24

24 display points

dp36

36 display points

dp48

48 display points

This method is shared.

This example returns the image named "moon-full" at a size of 48 and then draws it into a Graphics object:

Var moon As Picture = Picture.SystemImage("moon-full", Picture.SystemImageSizes.dp48)
g.DrawPicture(moon, 0, 0)

Compatibility

Project Types

Mobile

Operating Systems

Android