eraseBackgroundOnInvalidate Property


Indicates whether the ImageViewer will clear the foreground canvas prior to rendering.


JavaScript Syntax
Object.defineProperty(ImageViewer.prototype, 'eraseBackgroundOnInvalidate', 
	get: function(), 
	set: function(value) 
TypeScript Syntax
eraseBackgroundOnInvalidate: boolean; 

Property Value

true to clear the foreground canvas prior to rendering; otherwise, it is false. Default value is true.


Changing the value of this property will fire the PropertyChanged event and calls the Invalidate method.

For more information, refer to Image Viewer Rendering.

The EraseBackground event will always occur during rendering regardless of the value of EraseBackgroundOnInvalidate.


Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly