%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
SetSize Method
See Also 
vdWebLibrary Namespace > vdrawObj Class : SetSize Method
width
Optional.The new width of the canvas.If no parameter is used, the default of the selected canvas element width is used.
height
Optional.The new height of the canvas.If no parameter is used, the default of the selected canvas element height is used.
Sets the size of the selected canvas to the given parameters and updates the rendering context acoording the the selected canvas size.

Syntax

JScript 
public function SetSize( 
   width : int,
   height : int
);

Parameters

width
Optional.The new width of the canvas.If no parameter is used, the default of the selected canvas element width is used.
height
Optional.The new height of the canvas.If no parameter is used, the default of the selected canvas element height is used.

See Also