BitmapExtensions.ExtractBitmaps Method

KGy SOFT Drawing Libraries

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: 4.6.0
Syntax

public static Bitmap[] ExtractBitmaps(
	this Bitmap image
)
<ExtensionAttribute>
Public Shared Function ExtractBitmaps ( 
	image As Bitmap
) As Bitmap()
public:
[ExtensionAttribute]
static array<Bitmap^>^ ExtractBitmaps(
	Bitmap^ image
)
[<ExtensionAttribute>]
static member ExtractBitmaps : 
        image : Bitmap -> Bitmap[] 

Parameters

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

Reference