IBitmap interface¶
Defined in
Namespace: Splat
Assembly: Splat.Drawing.dll
Full name: Splat.IBitmap
Modifiers: public abstract
Summary¶
Defines an interface for a bitmap image that supports retrieving its dimensions and saving the image in a compressed
format. Every platform provides FromNative and ToNative methods to convert this object to the platform-specific versions.
Applies to
net10.0, net10.0-tvos26.0, net10.0-maccatalyst26.0, net10.0-browserwasm1.0, net10.0-windows10.0.19041, net10.0-desktop1.0, net10.0-ios26.0, net10.0-android36.0, net10.0-windows10.0.17763, net10.0-macos26.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net9.0-windows10.0.17763, net9.0-windows10.0.19041, net8.0, net8.0-macos14.5, net8.0-windows10.0.19041, net8.0-windows10.0.17763, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-tvos17.2, netstandard2.1, net462, net481
Class hierarchy
classDiagram
class IBitmap
class IDisposable {
<>
}
IDisposable <|.. IBitmap
Implements: IDisposable
Remarks¶
Implementations of this interface provide access to bitmap image data and allow saving the image to a stream in various compressed formats. The interface inherits from IDisposable, so implementations may hold unmanaged resources that should be released when no longer needed.
Properties¶
| Name | Summary |
|---|---|
| Width | Gets the width in pixel units (depending on platform). |
| Height | Gets the height in pixel units (depending on platform). |
Methods¶
| Name | Summary |
|---|---|
| Save | Saves an image to a target stream. |