Table of Contents

Interface IBitmapImpl

Namespace
Avalonia.Platform
Assembly
Avalonia.Base.dll

Defines the platform-specific interface for a Bitmap.

[PrivateApi]
public interface IBitmapImpl : IDisposable
Inherited Members

Properties

Dpi

Gets the dots per inch (DPI) of the image.

Vector Dpi { get; }

Property Value

Vector

PixelSize

Gets the size of the bitmap, in device pixels.

PixelSize PixelSize { get; }

Property Value

PixelSize

Version

Version of the pixel data

int Version { get; }

Property Value

int

Methods

Save(Stream, int?)

Saves the bitmap to a stream in png format.

void Save(Stream stream, int? quality = null)

Parameters

stream Stream

The stream.

quality int?

The optional quality for compression if supported by the specific backend. The quality value is interpreted from 0 - 100. If quality is null the default quality setting of the backend is applied.

Save(string, int?)

Saves the bitmap to a file.

void Save(string fileName, int? quality = null)

Parameters

fileName string

The filename.

quality int?

The optional quality for compression if supported by the specific backend. The quality value is interpreted from 0 - 100. If quality is null the default quality setting of the backend is applied.