Export (0) Print
Expand All

setScale method

Sets the transform type to SVG_TRANSFORM_SCALE by using the specified scale amounts.

Scalable Vector Graphics: Coordinate Systems, Transformations and Units, Section 7.14.4Internet Explorer 9

 

Syntax


HRESULT retVal = object.setScale(sx, sy);

Parameters

sx [in]

Type: float

The scale amount along the x-axis.

sy [in]

Type: float

The scale amount along the y-axis.

Return value

Type: HRESULT

This method can return one of these values.

Return codeDescription
W3CException_DOM_NO_MODIFICATION_ALLOWED_ERR

IE9 mode only.

An attempt is made to modify an object that cannot be changed.

 

Exceptions

ExceptionCondition
NoModificationAllowedError

An attempt is made to modify an object that cannot be changed. For versions earlier than Internet Explorer 10, NO_MODIFICATION_ALLOWED_ERR is returned.

 

Standards information

Remarks

The ISVGTransform::setScale method can raise a DOMException exception with the code NO_MODIFICATION_ALLOWED_ERR. This exception is raised if you try to change the value of a read-only attribute.

 

 

Community Additions

ADD
Show:
© 2014 Microsoft