BitmapExtensionsExtractBitmaps Method

KGy SOFT Drawing Libraries Help
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.

Namespace:  KGySoft.Drawing
Assembly:  KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 5.1.0

public static Bitmap[] ExtractBitmaps(
	this Bitmap image


Type: System.DrawingBitmap
An Image instance, which may contain multiple pages, frames or multi-resolution sub-images.

Return Value

Type: 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