Table of Contents

Class LockedFramebuffer

Namespace
Avalonia.Platform
Assembly
Avalonia.Base.dll
public class LockedFramebuffer : ILockedFramebuffer, IDisposable
Inheritance
LockedFramebuffer
Implements
Inherited Members

Constructors

LockedFramebuffer(nint, PixelSize, int, Vector, PixelFormat, Action?)

public LockedFramebuffer(nint address, PixelSize size, int rowBytes, Vector dpi, PixelFormat format, Action? onDispose)

Parameters

address nint
size PixelSize
rowBytes int
dpi Vector
format PixelFormat
onDispose Action

Properties

Address

Address of the first pixel

public nint Address { get; }

Property Value

nint

Dpi

DPI of underling screen

public Vector Dpi { get; }

Property Value

Vector

Format

Pixel format

public PixelFormat Format { get; }

Property Value

PixelFormat

RowBytes

Number of bytes per row

public int RowBytes { get; }

Property Value

int

Size

Gets the framebuffer size in device pixels.

public PixelSize Size { get; }

Property Value

PixelSize

Methods

Dispose()

public void Dispose()