BitmapExtensionsExtractBitmaps Method

When image contains multiple pages, frames or multi-resolution sub-images, returns them as separated Bitmap instances. Otherwise, returns a new Bitmap with the copy of the original image.

Definition

Namespace: KGySoft.Drawing
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 10.0.0-rc.1
C#
public static Bitmap[] ExtractBitmaps(
	this Bitmap image
)

Parameters

image  Bitmap
An Image instance, which may contain multiple pages, frames or multi-resolution sub-images.

Return Value

Bitmap
An array of Bitmap instances, which contains the images of the provided image.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Bitmap. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also