Skip to main content

ImageSource(Image, Boolean) Constructor

Creates an ImageSource object and sets its ImageSource.Image property to the image passed as a parameter.

Namespace: DevExpress.XtraPrinting.Drawing

Assembly: DevExpress.Printing.v23.1.Core.dll

NuGet Packages: DevExpress.Printing.Core, DevExpress.Win.Dashboard.Design


public ImageSource(
    Image image,
    bool isSharedResource = false


Name Type Description
image Image

The image the ImageSource object stores.

Optional Parameters

Name Type Default Description
isSharedResource Boolean False

true if the created image source is used by multiple objects; otherwise, false.



Use the ImageSource.ImageSource(DXImage, Boolean) overload for .NET 7 or in non-Windows environments.

If you create a shared image source, it is not disposed when the you dispose the owner object.

See Also