Click or drag to resize

Bitmap Class

Represents a binary image that consists of an image size and a byte array that contains the pre-multiplied image pixels in the BGRA format.
Inheritance Hierarchy
SystemObject
  DotNetBrowser.UiBitmap

Namespace:  DotNetBrowser.Ui
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.26.0
Syntax
C#
public sealed class Bitmap

The Bitmap type exposes the following members.

Properties
  NameDescription
Public propertyPixels
Gets a read-only byte array that contains the pre-multiplied pixels of the binary image. Each pixel allocates 4 bytes in the BGRA format.
Public propertySize
Gets the size of this bitmap instance.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodToBitmapOverloaded.
Converts the Bitmap instance to Bitmap.
(Defined by BitmapExtensions.)
Public Extension MethodToBitmapOverloaded.
Converts the Bitmap instance to Bitmap.
(Defined by BitmapExtensions.)
Public Extension MethodToBitmapSource
Converts the Bitmap instance to BitmapSource that can be then used in building the UI, e.g. displaying icons.
(Defined by BitmapExtensions.)
Public Extension MethodToSkBitmap
Converts a Bitmap to the SkiaSharp SKBitmap.
(Defined by BitmapExtensions.)
Public Extension MethodToSkImage
Converts a Bitmap to the SkiaSharp SKImage.
(Defined by BitmapExtensions.)
Public Extension MethodToUiBitmap
Converts a Bitmap to the Avalonia UI IBitmap.
(Defined by BitmapExtensions.)
Top
See Also