Microsoft.Maui.Graphics Namespace

Provides interfaces, classes and supporting types for .NET MAUI Graphics; the abstracted, unified drawing APIs that work cross-platform.

Classes

AbstractCanvas<TState>
AbstractPattern
BitmapExportContext
BitmapExportContextExtensions
CanvasDefaults
CanvasExtensions
CanvasState
Color
Colors

Represents all the system-defined colors.

FontWeights
GeometryUtil
GradientPaint
IFontExtensions
ImageExtensions
ImageLoadingServiceExtensions
ImagePaint
Insets
InsetsF
LinearGradientPaint
Paint
PaintExtensions
PaintGradientStop
PaintPattern
PathArcExtensions
PathBuilder
PathExtensions
PathF
PatternExtensions
PatternPaint
PdfPageExtensions
PictureCanvas
PictureExtensions
PicturePattern
PictureReaderExtensions
PictureWriterExtensions
RadialGradientPaint
ScalingCanvas
ShapeDrawable
SolidPaint
StandardPicture
StandardTextAttributes
XmlnsPrefixAttribute

Structs

Font
FontSource
Point
PointF
Rect
RectF
Size
SizeF

Interfaces

IBitmapExportService
IBlurrableCanvas
ICanvas

Represents a platform-agnostic canvas on which 2D graphics can be drawn using types from the Microsoft.Maui.Graphics namespace.

ICanvasStateService<TState>
IDrawable
IFont
IImage
IImageLoadingService
IPattern
IPdfPage
IPdfRenderService
IPicture
IPictureReader
IPictureWriter
IPlatformFonts
IShape

Provides a base definition class for shape elements, such as Ellipse, Polygon, or Rectangle.

IStringSizeService
ITextAttributes

Enums

BlendMode
FontStyleType
HorizontalAlignment
ImageFormat
LineCap
LineJoin
PathOperation
PictureCommand
ResizeMode
TextFlow
VerticalAlignment
WindingMode

Delegates

DrawingCommand
LayoutLine