AutoDisposeImages Property (original) (raw)

Summary

Indicates whether to automatically dispose item images, SVG documents and floaters.

Syntax

public virtual bool AutoDisposeImages { get; set; } 

public: virtual property bool AutoDisposeImages { bool get() void set(bool value) }

Property Value

true to automatically dispose item images, SVG documents and floaters; otherwise, false. Default value is true.

Example

This example will show the effect of AutoDisposeImages.

using Leadtools; using Leadtools.Controls; using Leadtools.Codecs; using Leadtools.Drawing; using Leadtools.ImageProcessing; using Leadtools.ImageProcessing.Color; public void ImageViewerAutoDisposeImages_Example() { // Make a copy of the image in viewer and save it RasterImage image2 = _imageViewer.Image; // Set a copy in the viewer, this is the image we will change here _imageViewer.AutoDisposeImages = false; _imageViewer.Image = image2.Clone(); _imageViewer.AutoDisposeImages = true; }