Matrix3x2F::Scale(FLOAT,FLOAT,D2D1_POINT_2F) method (d2d1helper.h)

Creates a scale transformation that has the specified scale factors and center point.

Syntax

Matrix3x2F Scale(
  FLOAT         x,
  FLOAT         y,
  D2D1_POINT_2F center
);

Parameters

x

Type: FLOAT

The x-axis scale factor of the scale transformation.

y

Type: FLOAT

The y-axis scale factor of the scale transformation.

center

Type: D2D1_POINT_2F

The point about which the scale is performed.

Return value

Type: Matrix3x2F

The new scale transformation.

Remarks

This method creates a scale transformation for the specified centerPoint and the x-axis and y-axis scale factors. If you prefer to create a
D2D1_SIZE_F structure to store the scale factors, call the other Scale method.

The following illustration shows the size of the square increased to 130% in both dimensions. The center point of the scaling is the upper-left corner of the square.

Illustration of a square scaled by 130% in the x-direction and y-direction

For an example, see How to Scale an Object.

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps only]
Target Platform Windows
Header d2d1helper.h
Library D2d1.lib
DLL D2d1.dll

See also

Matrix3x2F