Table of Contents

Namespace Alternet.Drawing

Classes

AnimatedImage

Represents an animated image that can be displayed in a user interface.

AnimatedImageExtractor

Provides static methods for extracting individual frames from animated images.

AnimatedImageFrameInfo

Represents a single frame within an animated image, including its bitmap data, display duration, and compositing information.

AnimatedImageSet

Represents a collection of animated images that can be displayed at various scale factors.

AnimatedImageSet.ImageItem

Represents an item that contains an animated image and its associated display scale factor.

AttachedImageContainer<T>

Represents an image container which is attached to another image container and forwards all calls to it.

BaseDrawable

Represents a base class for drawable objects that can be rendered on a control or other visual element.

Bitmap

Encapsulates a bitmap, which consists of the pixel data for a graphics image and its attributes. A Bitmap is an object used to work with images defined by pixel data.

BorderDrawable

Implements background and border painting. Additionally it can paint image inside the rectangle.

Brush

Defines objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths.

BrushAndPen

Contains Brush and Pen properties.

BrushConverter

Converts brushes from one data type to another. Access this class through the TypeDescriptor.

BrushOrColor

Contains brush or color.

Brushes

Brushes for all the standard colors.

Color

Represents an ARGB (alpha, red, green, blue) color.

Color.ColorNameComparer

Implements IComparer<T> interface. Compares two colors using string compare of their names.

Color.ColorNameLocalizedComparer

Implements IComparer<T> interface. Compares two colors using string compare of their names.

ColorCache

Provides a cached collection of Color instances corresponding to all KnownColor values.

ColorConverter

Converts colors from one data type to another. Access this class through the TypeDescriptor.

ColorSvgImage

SvgImage descendant which works with color svg images.

ColorTranslator

Translates colors to and from GDI+ Color objects.

ColorUtils

Contains Color related static methods.

ControlPaint

Provides methods used to paint common controls and their elements.

DefaultColors

Provides default colors for the application.

DefaultColors.MauiToolBar

Provides predefined color values for styling toolbar elements in .NET MAUI applications.

DrawingResource

Represents a drawing resource that can be defined by a brush, pen, or color.

DynamicBitmap

Represents a dynamically resizable bitmap that supports transparency and scaling.

DynamicBitmap<T>

Represents a dynamic bitmap that supports lazy initialization, scaling, and transparency.

Font

Defines a particular format for text, including font face, size, and style attributes. This class cannot be inherited.

FontFactory

Provides access to the font factory.

FontFamily

Defines a group of type faces having a similar basic design and certain variations in styles.

GradientBrush

Base class for gradient brushes.

GradientStop

Describes the location and color of a transition point in a gradient.

Graphics

Defines a custom drawing surface.

GraphicsFactory

Contains static methods and properties related to the graphics objects creation, conversion and handling.

GraphicsPath

Represents a series of connected lines and curves. This class cannot be inherited.

GraphicsUnitConverter

Contains conversion methods related to GraphicsUnit.

HatchBrush

Defines a brush with a hatch style and a color.

IFontHandler.FontParams

Contains font properties.

IconSet

Represents a set of icons, typically loaded from an .ico file, containing multiple icon images of various sizes and color depths.

IconSetConverter

Converts IconSet from one data type to another. Access this class through the TypeDescriptor.

IconStream

Represents helper class for reading icon data from a stream.

IconStream.IconEntry

Represents an entry in the icon stream.

Image

Describes an image to be drawn on a Graphics or displayed in a UI control.

ImageContainer

Represents a container for images. It can be used to store multiple images of various sizes and color depths.

ImageConverter

Converts Image from one data type to another. Access this class through the TypeDescriptor.

ImageDrawable

Represents a drawable object that can display an image, including support for SVG images and various image states (enabled/disabled). This class provides properties to specify the image source, color, size, and alignment options. It also includes methods to retrieve the appropriate image based on the control's state and to perform default drawing of the image within a specified control and drawing context.

ImageFormat

Specifies the file format of the image. Not inheritable.

ImageList

Provides methods to manage a collection of Image objects.

ImageSet

Represents a set of images with different sizes and scales. It is used to provide the best image for a given size and scale. This class generalizes image for applications supporting multiple DPIs and allows to operate with multiple versions of the same image, in the sizes appropriate to the currently used display resolution, as a single unit.

ImageSetConverter

Converts ImageSet from one data type to another. Access this class through the TypeDescriptor.

ImageSizeFallbackOptions

Specifies size fallback options for image retrieval.

InteriorDrawable

Implements control interior drawing. This includes border, background, vertical and horizontal scrollbars drawing.

InteriorDrawable.LayoutRectanglesParams

Represents optional parameters for the GetLayoutRectangles(AbstractControl, LayoutRectanglesParams?) method.

KnownColorInfo

Represents information about a known color, including its category, label, localized label, and value.

KnownColorNames

Contains methods which alllow to get name of the color specified using KnownColor.

KnownColorTable

Allows to convert colors to ARGB.

KnownOSColorConsts

Defines color constants for the control parts in the different operating systems.

KnownOSColorConsts.WindowsDark

Defines color constants for the control parts under Windows when dark color scheme is selected.

KnownOSColorConsts.WindowsLight

Defines color constants for the control parts under Windows when light color scheme is selected.

KnownOSColorConsts.WindowsLightOrDark

Gets color constants for the control parts under Windows for light or dark theme.

LightDarkColor

Extends Color with additional features. Implements light and dark color pair, one of them is used when argb of the LightDarkColor is requested. Returned argb depends on the value specified in IsDarkOverride and a result of IsUsingDarkBackground.

LightDarkColors

Contains static members related to colors which have different argb in dark and light themes.

LightDarkImage<TImage>

Contains image for the light and dark color themes.

LinearGradientBrush

Paints an area with a linear gradient.

ListItemDrawable

Implements ListControlItem painting.

MaterialDesign

Provides a collection of constants and utilities for implementing Material Design principles in user interface components. This class includes standardized values and settings based on Material Design guidelines.

MaterialDesign.CornerRadius

Provides standardized corner radius values for Material Design components. Values are based on Material 3 shape system guidelines.

MessageBoxSvg

Contains known svg images for the message box dialogs.

MonoSvgImage

SvgImage descendant which works with mono (single color) svg images.

MswSkiaOpenGLContext

Represents an OpenGL rendering context for a Windows control, designed for use with SkiaSharp's GPU-based rendering.

NamedColors

Contains methods and properties which allow to work with named colors.

NinePatchImagePaintParams

Defines parameters for the nine patch image drawing.

NineRects.PreviewControl

Sample preview control for the NineRects structure.

NullImageSource

Represents a null or empty image source. Implements IImageSource with default or null values.

Pen

Defines an object used to draw lines and curves.

Pens

Pens for all the standard colors.

PlessControlPainterHandler

Provides methods to paint and measure control parts such as checkboxes, expanders, and header buttons.

PlessGraphics

Implements dummy drawing context which does no drawing.

PlessImageHandler

Implements abstract base class with some common methods and properties which allow to work with images.

PlessSystemColors

Contains static methods and properties which allow to manage system colors

RadialGradientBrush

Paints an area with a radial gradient.

RectangleDrawable

Implements background and border painting. Additionally it can paint image inside the rectangle.

Region

Describes the interior of a graphics shape composed of rectangles and paths.

ScrollBarDrawable

Implements scrollbar drawing.

ShapeDrawable

Implements shapes painting. Use ShapeType property to specify the shape type.

SkiaColorFilter

Helper class which works with SKColorFilter.

SkiaFontFactoryHandler

Implements IFontFactoryHandler interface provider for SkiaSharp fonts.

SkiaFontSettings

Represents configurable font settings that control text rendering behavior.

SkiaGraphics

Implements Graphics over SKCanvas or SKBitmap.

SkiaGraphicsPathHandler

Provides an implementation of the IGraphicsPathHandler interface for SkiaSharp platform.

SkiaRegionHandler

Implements IRegionHandler provider for the SkiaSharp regions.

SkiaUtils

Contains static methods and properties related to SkiaSharp drawing.

SkiaUtils.BitmapCanvasCached

Represents a cached bitmap canvas, including its graphics context, size, scale factor, and transparency.

SolidBrush

Defines a brush of a single color. Brushes are used to fill graphics shapes, such as rectangles, ellipses, pies, polygons, and paths.

StringFormat

Specifies formatting information, display manipulations, and font related features for text.

SvgImage

Implements methods and properties to work with toolbar svg images. These are rectangular images with small size. This class allows to speed up loading and getting of different states (and sizes) of the same image.

SvgImageSet

Provides a set of images in different resolutions based on the same svg image. Images are generated from svg on demand and are cached in the set.

SvgUtils

Contains static methods related to svg images handling.

SystemColors

Each property of the SystemColors class is a Color structure that is the color of a Windows display element.

SystemColorsDarkLinux

Contains system color values for the Linux dark theme in case when operating system provides no system colors.

SystemColorsDarkMacOs

Contains system color values for the macOs dark theme in case when operating system provides no system colors.

SystemColorsLight

Contains system color values for the light theme in case when operating system provides no system colors.

SystemDrawingColorCache

Provides a cached collection of Color instances corresponding to all KnownColor values.

SystemFonts

Provides access to system fonts.

TextFormat

Encapsulates text layout information (such as alignment and orientation), display manipulations (such as ellipsis insertion) and other formatting options.

TextRenderer

Provides methods used to measure and render text. This class is created for the compatibility with the WinForms. Default implementation is limited and does not support all features of the WinForms TextRenderer. Assign Handler property to a custom implementation of ITextRendererHandler in order to use the full functionality of the WinForms TextRenderer.

TextureBrush

Defines a brush of a single color. Brushes are used to fill graphics shapes, such as rectangles, ellipses, pies, polygons, and paths.

TiledImageBackground

Provides a tiled image background rendering mechanism.

Structs

ARGBValue

A simple class which stores alpha, red, green and blue values as 8 bit unsigned integers in the range of 0-255.

AxisIntervalD

Represents a structure that encapsulates a start position and a length, commonly used in layout calculations to define the starting point and the extent of a layout item along a specific axis (horizontal or vertical).

BaseDrawable.PaintDelegateParams

Contains parameters for the BaseDrawable.PaintDelegate used in custom painting of a drawable object.

CachedSvgImage<TImage>

Storage for SvgImage conversions to Image for the different visual states and light/dark flags.

CharacterRange

Represents a range of characters in a string, defined by a starting position and a length.

ColorStruct

ColorStruct used inside the Color object in order to store color value. This structure stores color as BGRA and is compatible with SKColor.

CoordAndUnit

Represents a coordinate value with an associated unit.

CoordD

Contains coordinate related properties and methods.

FontInfo

Defines font information. This is different from Font as contains only font properties and no font handle.

FontNameAndSize

Contains font name and size.

Graphics.CanvasCreateParams

Represents the parameters required to create a measure canvas.

Graphics.DrawElementParams

Contains draw element parameters.

Graphics.DrawElementsParams

Contains parameters for the draw elements method.

Graphics.DrawLabelParams

Contains parameters for the draw label method.

GraphicsConfigIdentity

Represents a unique identifier for a graphics configuration, defined by a graphics backend type and a scale factor.

GraphicsState

Represents the state of a Graphics object. This object is returned by a call to the Save() methods.

HSVValue

A simple class which stores hue, saturation and value as doubles in the range 0.0-1.0.

ImageBitsFormat

Contains properties which describe format of the image pixels.

InteriorDrawable.HitTestsResult

Contains full hit test result, including interior part and scrollbar part.

NineRects

Represents a structure that divides a container rectangle into nine distinct rectangular regions based on a specified patch rectangle. This structure is commonly used to facilitate scalable rendering of user interface elements by enabling separate manipulation of each region.

PenInfo

Defines the properties of a pen used for drawing lines and curves.

PointD

Represents an ordered pair of x and y coordinates that define a point in a two-dimensional plane.

PointI

Represents an ordered pair of x and y coordinates that define a point in a two-dimensional plane.

RGBAValue

A simple class which stores alpha, red, green and blue values as 8 bit unsigned integers in the range of 0-255.

RGBValue

A simple class which stores red, green and blue values as 8 bit unsigned integers in the range of 0-255.

RectD

Stores the location and size of a rectangular region.

RectI

Stores the location and size of a rectangular region.

SizeD

Represents the size of a rectangular region with an ordered pair of width and height.

SizeI

Represents the size of a rectangular region with an ordered pair of width and height.

SkiaFontHandler

IFontHandler implementation which is not platform-dependent.

StringFormat.Record

Contains all properties of the StringFormat.

SvgImageInfo

Contains properties and methods which allow to specify svg image information.

TextAndFontStyle

Contains text and font style.

TextFormat.Record

Contains all properties of the TextFormat.

TransformMatrix

Encapsulates a 3-by-2 affine matrix that represents a geometric transform. This structure uses Matrix3x2 internally for data storage. Use Matrix3x2 field to access it.

Interfaces

IBaseDrawable

Provides access to methods and properties of the drawable object.

IBrushHandler

Base interface for the brush handlers.

IControlPainterHandler

Contains methods which can paint and measure control parts. For example, DrawCheckBox(AbstractControl, Graphics, RectD, CheckState, VisualControlState, Color?) method paints check box in different states.

IFontFactoryHandler

Contains methods and properties which allow to create and manage fonts.

IFontHandler

Contains methods and properties which allow to work with font.

IGenericImageHandler

Contains methods and properties which allow to work with generic platform independent image.

IGraphics

Contains methods and properties which allow to paint on the drawing context.

IGraphicsPathHandler

Contains methods and properties which allow to work with graphics path.

IImageContainer

Defines methods and properties which allow to perform different operations with image containers.

IImageHandler

Contains methods and properties which allow to work with image.

IImageListHandler

Contains methods and properties which allow to work with image list.

IImageSource

Defines properties for objects that can provide image sources in various forms, such as a single image, an image list, an image set, or an SVG image.

IKnownColorInfo

Represents information about a known color, including its category, label, value, and visibility.

ILockImageBits

Contains methods and properties which allow to lock/unlock image pixels and to get pixel format.

IRegionHandler

Contains methods and properties which allow to work with region.

ISkiaSurface

Contains properties and methods which help to use SKCanvas over the bitmap pixels.

ISystemColorStructs

Provides a set of properties representing system color values as ColorStructs.

ITextRendererHandler

Defines the interface for a text renderer handler.

Enums

BrushHatchStyle

Specifies the different patterns available for the hatch brushes.

BrushType

Defines possible brush types.

ClipOperation

Enumerates the logical operations that can be performed when combining two regions.

Color.StateFlags

Enumerates color value state flags.

ColorAdjustmentOperation

Specifies the available operations for adjusting a color's brightness, such as lightening or darkening.

CombineMode

Specifies how different regions can be combined.

CoordUnit

Specifies the unit of measurement for coordinates.

DashStyle

Gets or sets the style used for dashed lines drawn with the pen.

DrawLabelFlags

Enumerates flags that can be used to customize label painting.

DrawingShapeType

Defines the type of shape to be drawn.

FillMode

Specifies how the interior of a closed path is filled.

FontEncoding
FontOriginKind

Specifies the kind of the font source.

FontStyle

Specifies style information applied to text.

FontWeight

Refers to the density of a typeface, in terms of the lightness or heaviness of the strokes.

GenericFontFamily

Specifies a generic font family.

GraphicsBackendType

Specifies the graphics backend used for rendering.

GraphicsUnit

Specifies the unit of measure for the data.

GraphicsUnitConverter.GraphicsType

Type of the graphics.

HatchStyle

Specifies hatch styles that can be used to fill shapes.

HotkeyPrefix

Specifies the type of display for hotkey prefixes in the text.

ISkiaSurface.SurfaceKind

Specifies the type of pixel data over which a surface is created.

ImageBitsFormatKind

Enumerates known image pixel format.

ImageLayout

Specifies the position of the image on the drawing surface.

ImageLockMode

Specifies flags that are used when a portion of an image is locked so that you can read or write the pixel data.

ImageSizeFallback

Determines what happens when an image with the exact size is not found in the container.

ImageSourceKind

Specifies the kind of image source.

InteriorDrawable.HitTestResult

Enumerates possible hit test return values.

InterpolationMode

The InterpolationMode enumeration specifies the algorithm that is used when images are scaled.

KnownColor

Specifies the known colors.

KnownColorCategory

Known colors categories enumeration.

KnownSystemColor

Specifies the system known colors.

LineCap

Specifies the available cap styles with which a pen object can end a line.

LineJoin

Specifies how to join consecutive line or curve segments.

LinearGradientMode

Specifies the direction of a linear gradient.

MatrixOrder

Specifies the order for matrix transform operations.

NineRects.NineRectsParts

Defines parts of the NineRects structure.

PixelFormat

Specifies the format of the color data for each pixel in the image.

RasterOperationMode

Defines logical raster operations which can be used with blit, stretch-blit and some other functions.

RegionContain

Types of results returned from a call to 'Contains' methods of the region.

ScrollBarDrawable.HitTestResult

Enumerates possible hit test return values.

SmoothingMode

Specifies the smoothing mode for rendering.

StringAlignment

Specifies the alignment of text within a layout container.

StringDigitSubstitute

Specifies the digit substitution method for a particular language.

StringFormatFlags

Specifies formatting information, display manipulations, and font related features for text.

StringTrimming

Specifies how text is trimmed when it exceeds the layout region.

SvgImageDataKind

Specifies the kind of SVG data contained in a string. Enumerates known data parameter types for the constructor of svg image.

SvgImageNumOfColors

Enumerates possible number of colors used in svg image.

TextFormatFlags

Specifies the display and layout information for text strings.

TextHorizontalAlignment

Specifies the horizontal alignment of a text string relative to its layout rectangle.

TextTrimming

Specifies how to trim characters from a string that does not completely fit into a layout shape.

TextVerticalAlignment

Specifies the vertical alignment of a text string relative to its layout rectangle.

TextWrapping

Specifies how to wrap characters from a string that does not completely fit into a layout shape.

WrapMode

Specifies how a texture or gradient is tiled when it is smaller than the area being filled.

WxSystemSettingsColor

System colors enumeration in wxWidgets.

Delegates

BaseDrawable.PaintDelegate

Represents a method that handles custom painting for a drawable control.

ConvertGraphicsUnit

Defines delegate for Convert handler.

PlessControlPainterHandler.GetCheckBoxSvgDelegate

Represents a delegate that returns a SvgImage based on a specified CheckState.