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 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly