---
title: "Size.Subtract"
url: "https://reference.aspose.com/imaging/net/aspose.imaging/size/subtract/"
product: "Aspose.Imaging for .NET API Reference"
description: "Size method. Subtracts the width and height of one Size structure from the width and height of another Size structure"
---

## Size.Subtract method

Subtracts the width and height of one [`Size`](../) structure from the width and height of another [`Size`](../) structure.

```csharp
public static Size Subtract(Size size1, Size size2)
```

| Parameter | Type | Description |
| --- | --- | --- |
| size1 | Size | The [`Size`](../) structure on the left side of the subtraction operator. |
| size2 | Size | The [`Size`](../) structure on the right side of the subtraction operator. |

### Return Value

The [`Size`](../) that is a result of the subtraction operation.

### See Also

* struct [Size](../)
* namespace [Aspose.Imaging](../../size/)
* assembly [Aspose.Imaging](../../../)


