Click or drag to resize

Workspace.Image Property

Gets or sets the current AtalaImage that is active in this Workspace.

Namespace:  Atalasoft.Imaging
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.5.0.0.0.156 (.NET 4.6.2, x86)
Syntax
public AtalaImage Image { get; set; }

Property Value

Type: AtalaImage
Remarks

When the image that is being set already exists in the ImageCollection, then that image is set as the current, and the ChangedImage event fires. When the image being set does not exist in the collection, the current image is replaced with the new image, and the current image is either added to the UndoCollection, or disposed.

To replace the current image, without disposing it, or placing it into the UndoCollection, use the Replace(AtalaImage) method in the ImageCollection by calling myWorkspace.Images.Replace(newImage) instead of myWorkspace.Image = newImage.

See Also