How to get icons from the DX Image Gallery

By FoxLearn 10/23/2024 4:29:28 AM   47
To access an image from the DX Image Gallery, you can follow these steps.

You can get these images by using DevExpress.Images.ImageResourceCache class. Using the static method DevExpress.Images.ImageResourceCache.Default.GetImage to retrieve images programmatically from the gallery.

devexpress image picker

How to access an image from DX Image Gallery?

C#

Image img = DevExpress.Images.ImageResourceCache.Default.GetImage("images/edit/delete_16x16.png");  

VB.NET

Dim img As Image = DevExpress.Images.ImageResourceCache.Default.GetImage("images/actions/cancel_16x16.png")  

Ensure you have the necessary DevExpress.Images libraries referenced in your project.

In this case, you can retrieve images by their names using the corresponding ToolTip.