autoScale Property

Summary

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

Syntax

JavaScript Syntax
Object.defineProperty(CanvasOptions.prototype, 'autoScale', 
	get: function(), 
	set: function(value) 
) 
TypeScript Syntax
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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly