IPlatformRenderInterface Interface

Summary

Defines the main platform-specific interface for the rendering subsystem.
Namespace
Avalonia.Platform
graph BT Type["IPlatformRenderInterface"] class Type type-node

Syntax

public interface IPlatformRenderInterface

Properties

Name Value Summary
DefaultAlphaFormat AlphaFormat
Default AlphaFormat used on this platform.
DefaultPixelFormat PixelFormat
Default PixelFormat used on this platform.
SupportsIndividualRoundRects bool

Methods

Name Value Summary
CreateEllipseGeometry(Rect) IGeometryImpl
Creates an ellipse geometry implementation.
CreateFormattedText(string, Typeface, double, TextAlignment, TextWrapping, Size, IReadOnlyList<FormattedTextStyleSpan>) IFormattedTextImpl
Creates a formatted text implementation.
CreateGlyphRun(GlyphRun, double) IGlyphRunImpl
Creates a platform implementation of a glyph run.
CreateLineGeometry(Point, Point) IGeometryImpl
Creates a line geometry implementation.
CreateRectangleGeometry(Rect) IGeometryImpl
Creates a rectangle geometry implementation.
CreateRenderTarget(IEnumerable<object>) IRenderTarget
Creates a renderer.
CreateRenderTargetBitmap(PixelSize, Vector) IRenderTargetBitmapImpl
Creates a render target bitmap implementation.
CreateStreamGeometry() IStreamGeometryImpl
Creates a stream geometry implementation.
CreateWriteableBitmap(PixelSize, Vector, PixelFormat, AlphaFormat) IWriteableBitmapImpl
Creates a writeable bitmap implementation.
LoadBitmap(PixelFormat, AlphaFormat, IntPtr, PixelSize, Vector, int) IBitmapImpl
Loads a bitmap implementation from a pixels in memory.
LoadBitmap(Stream) IBitmapImpl
Loads a bitmap implementation from a file..
LoadBitmap(string) IBitmapImpl
Loads a bitmap implementation from a file..
LoadBitmapToHeight(Stream, int, BitmapInterpolationMode) IBitmapImpl
Loads a bitmap implementation from a stream to a specified height maintaining aspect ratio.
LoadBitmapToWidth(Stream, int, BitmapInterpolationMode) IBitmapImpl
Loads a bitmap implementation from a stream to a specified width maintaining aspect ratio.
ResizeBitmap(IBitmapImpl, PixelSize, BitmapInterpolationMode) IBitmapImpl