Class
DrawingFactory

Class for loading and initializing the current drawing factory based on the configured graphics engine. The drawing factory has two implementations: GDI and Skia, which are accessible through common interface.

Definition

Namespace:Telerik.Drawing.Contract

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
public static class DrawingFactory

Inheritance: objectDrawingFactory

Properties

CurrentGraphicsEngine

Gets or sets the current graphics engine. Setting the graphics engine is supported in .NET applications only. Member of GraphicsEngine.

Declaration

cs-api-definition
public static GraphicsEngine CurrentGraphicsEngine { get; }

Property Value

GraphicsEngine

Methods

CreateBitmap(int, int, PixelFormat)

Creates and returns an IImage instance with provided parameters.

Declaration

cs-api-definition
public static IImage CreateBitmap(int width, int height, PixelFormat format32bppArgb)

Parameters

width

int

The width of the bitmap in pixels.

height

int

The height of the bitmap in pixels.

format32bppArgb

PixelFormat

The PixelFormat of the bitmap.

Returns

IImage

IImage

CreateImage(object)

Creates and returns an IImage instance from the provided object parameter. The parameter is expected to be an instance of IImage, System.Drawing.Image (for GDI rendering), or SKBitmap (for Skia rendering) class.

Declaration

cs-api-definition
public static IImage CreateImage(object image)

Parameters

image

object

IImage, System.Drawing.Image or SKBitmap instance.

Returns

IImage

IImage

Remarks

The method can be called when assigning a native image programmatically to an IImageContainer, i.e PictureBox or CheckBox.