![]() |
|
ImageExtensionsGetBitsPerPixel Method | KGy SOFT Drawing Libraries Help |
Gets the bits per pixel (bpp) value of the image.
Namespace: KGySoft.Drawing
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 4.6.0
Syntax
public static int GetBitsPerPixel( this Image image )
<ExtensionAttribute> Public Shared Function GetBitsPerPixel ( image As Image ) As Integer
public: [ExtensionAttribute] static int GetBitsPerPixel( Image^ image )
[<ExtensionAttribute>] static member GetBitsPerPixel : image : Image -> int
Parameters
- image
- Type: System.DrawingImage
The image to obtain the bits-per-pixel value from.
Return Value
Type: Int32The bits per pixel (bpp) value of the image.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Image. 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