IBitmap Interface

Summary

Represents a bitmap image.
Namespace
Avalonia.Media.Imaging
Interfaces
Implementing Types
graph BT Type-.->Interface0["IImage"] click Interface0 "/api/Avalonia.Media/IImage" Type-.->Interface1["IDisposable"] Type["IBitmap"] class Type type-node Implementing0["RenderTargetBitmap"]-.->Type click Implementing0 "/api/Avalonia.Media.Imaging/RenderTargetBitmap" Implementing1["Bitmap"]-.->Type click Implementing1 "/api/Avalonia.Media.Imaging/Bitmap" Implementing2["WriteableBitmap"]-.->Type click Implementing2 "/api/Avalonia.Media.Imaging/WriteableBitmap"

Syntax

public interface IBitmap : IImage, IDisposable

Properties

Name Value Summary
Dpi Vector
Gets the dots per inch (DPI) of the image.
PixelSize PixelSize
Gets the size of the bitmap, in device pixels.
PlatformImpl IRef<IBitmapImpl>
Gets the platform-specific bitmap implementation.

Methods

Name Value Summary
Save(Stream) void
Saves the bitmap to a stream in png format.
Save(string) void
Saves the bitmap to a file.