SvgImageCollection.GetImage(String, Nullable<Size>) Method
Returns a regular raster image of the desired size. The image is produced from a source vector image.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v18.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
name | String | A String value that is the vector image name within the SvgImageCollection. |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
size | Nullable<Size> | *null* | A Size structure that is 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 this SvgImageCollection.
simpleButton1.ImageOptions.Image = collection.GetImage("SaveAll", 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(String, 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.