Table of Contents

Method ExtractPage

Namespace
LMKit.Media.Image
Assembly
LM-Kit.NET.dll

ExtractPage(int)

Extracts a specific page from a multipage image as an independent ImageBuffer. The currently selected page is not changed.

public ImageBuffer ExtractPage(int pageIndex)

Parameters

pageIndex int

Zero-based page index. Must be in range [0, PageCount).

Returns

ImageBuffer

A new ImageBuffer containing a deep copy of the requested page.

Exceptions

ArgumentOutOfRangeException

Thrown when pageIndex is out of range.

InvalidOperationException

Thrown when decoding the page fails.

ObjectDisposedException

Thrown if this instance has been disposed.

Share