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 21.0.2021.7.2
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.