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
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