---
title: "WebPImage.InsertBlock"
url: "https://reference.aspose.com/imaging/net/aspose.imaging.fileformats.webp/webpimage/insertblock/"
product: "Aspose.Imaging for .NET API Reference"
description: "WebPImage method. Insert a new WebP block at the specified index within the image enabling precise control over the block sequence. Integrate this method to seamlessly incorporate additional WebP blocks into the image data structure facilitating advanced image processing and optimization within your application"
---

## WebPImage.InsertBlock method

Insert a new WebP block at the specified index within the image, enabling precise control over the block sequence. Integrate this method to seamlessly incorporate additional WebP blocks into the image data structure, facilitating advanced image processing and optimization within your application.

```csharp
public void InsertBlock(int index, IFrame block)
```

| Parameter | Type | Description |
| --- | --- | --- |
| index | Int32 | The zero-based element, at which *block* will be inserted. |
| block | IFrame | The Webp block to add. |

### See Also

* interface [IFrame](../../iframe/)
* class [WebPImage](../)
* namespace [Aspose.Imaging.FileFormats.Webp](../../webpimage/)
* assembly [Aspose.Imaging](../../../)


