SvgImageCollection.GetImage(Int32, Nullable<Size>) Method
Returns a regular raster image of the desired size. The image is produced from a source vector image. Throws the System.ArgumentOutOfRangeException if the collection has no vector image with the given index.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v19.1.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
index | Int32 | An Index of a source vector image within this SvgImageCollection. |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
size | Nullable<Size> | *null* | A Size structure that is the produced image 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 this SvgImageCollection.
simpleButton1.ImageOptions.Image = collection.GetImage(5, new System.Drawing.Size(164, 164));
See the SvgImageCollection class description to learn more.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetImage(Int32, Nullable<Size>) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.