Click or drag to resize

WorkspaceAutoDispose Property

Gets or sets a value indicating if the Workspace should dispose all images it contains when finalized.

Namespace:  Atalasoft.Imaging
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public bool AutoDispose { get; set; }

Property Value

Type: Boolean
A value indicating if the Workspace should dispose all images it contains when finalized.
Remarks
This value is true by default. Setting this value to false is useful when using an Images from another location. This only prevents images from being disposed when the associated Workspace object is disposed or finalized. To prevent images from being disposed when processing, handle the DisposeImage event and set the cancel property in the event args to true. Also consider using Replace(AtalaImage) instead of the Image property when setting a new image.
See Also