Skip to main content
A newer version of this page is available.
All docs
V19.2

ImageCollection<TImage, TInfo>.GetImage(String, Nullable<Size>) Method

Returns a regular raster image of the desired size. The image is produced from a source vector image. Returns null if the collection has no vector image with the given name.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v19.2.dll

Declaration

public Image GetImage(
    string name,
    Size? size = default(Size? )
)

Parameters

Name Type Description
name String

The vector image name within the collection).

Optional Parameters

Name Type Default Description
size Nullable<Size> *null*

The produced image’s size.

Returns

Type Description
Image

An Image that is the raster image produced from a vector image.

Remarks

The code below illustrates how to create a 164x164-pixel raster image from a vector image stored in the SvgImageCollection.

simpleButton1.ImageOptions.Image = collection.GetImage("SaveAll", new System.Drawing.Size(164, 164));

See the SvgImageCollection class description to learn more.

See Also