---
title: "Aspose::Page::XPS::XpsModel::XpsMatrix::Scale method"
url: "https://reference.aspose.com/page/cpp/aspose.page.xps.xpsmodel/xpsmatrix/scale/"
product: "Aspose.Page for C++"
description: "Aspose::Page::XPS::XpsModel::XpsMatrix::Scale method. Applies the specified scale vector (scaleX and scaleY) to this Matrix in default (Prepend) order in C++."
---

## XpsMatrix::Scale(float, float) method


Applies the specified scale vector (scaleX and scaleY) to this Matrix in default (Prepend) order.

```cpp
void Aspose::Page::XPS::XpsModel::XpsMatrix::Scale(float scaleX, float scaleY)
```


| Parameter | Type | Description |
| --- | --- | --- |
| scaleX | float | The scale x. |
| scaleY | float | The scale y. |

## See Also

* Class [XpsMatrix](../)
* Namespace [Aspose::Page::XPS::XpsModel](../../)
* Library [Aspose.Page for C++](../../../)
## XpsMatrix::Scale(float, float, System::Drawing::Drawing2D::MatrixOrder) method


Applies the specified scale vector (scaleX and scaleY) to this Matrix in order specified by *matrixOrder* .

```cpp
void Aspose::Page::XPS::XpsModel::XpsMatrix::Scale(float scaleX, float scaleY, System::Drawing::Drawing2D::MatrixOrder matrixOrder)
```


| Parameter | Type | Description |
| --- | --- | --- |
| scaleX | float | The scale X. |
| scaleY | float | The scale Y. |
| matrixOrder | System::Drawing::Drawing2D::MatrixOrder | The order. |

## See Also

* Enum [MatrixOrder](../../../system.drawing.drawing2d/matrixorder/)
* Class [XpsMatrix](../)
* Namespace [Aspose::Page::XPS::XpsModel](../../)
* Library [Aspose.Page for C++](../../../)
