autoScale Property

Summary

Indicates whether to automatically scale the HTML5 Canvas Element to a smaller size if an error occurred during creation.

Syntax
TypeScript
JavaScript
Object.defineProperty(CanvasOptions.prototype, 'autoScale', 
	get: function(), 
	set: function(value) 
) 
static autoScale: boolean; 

Property Value

true to automatically scale the canvas to a smaller size if an error occurred during creation; otherwise, false. Default value is true.

Remarks

Used when creating a canvas. Refer to AutoCreateCanvas for more information.

Example

For an example, refer to AutoCreateCanvas.

Requirements

Target Platforms

Help Version 22.0.2021.9.24
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.