Skip to main content

ImageGallerySettings.CustomImageProcessing Property

Enables you to custom process an image, e.g., add a watermark, when the ImageGallery is bound to a folder or to binary data.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public ImageGalleryCustomImageProcessingEventHandler CustomImageProcessing { get; set; }

Property Value

Type Description
ImageGalleryCustomImageProcessingEventHandler

A ImageGalleryCustomImageProcessingEventHandler delegate method allowing you to implement custom processing.

Remarks

The CustomImageProcessing event occurs only when the ImageGallery extension is bound to a folder or to binary data. The event is raised for each image three times (for a thumbnail, a fullscreen viewer image and a fullscreen viewer thumbnail), and enables you to custom process it. For instance, you can handle this event to add a watermark.

The event parameter’s properties allow you to access the processed image (ImageGalleryCustomImageProcessingEventArgs.Image) and to identify the processed image location within the gallery (ImageGalleryCustomImageProcessingEventArgs.ImageLocation). The ImageGalleryCustomImageProcessingEventArgs.Graphics property provides methods for drawing over the image.

See Also