ClassDrawingFactory
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:
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
public static GraphicsEngine CurrentGraphicsEngine { get; }
Property Value
Methods
CreateBitmap(int, int, PixelFormat)
Creates and returns an IImage instance with provided parameters.
Declaration
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
The PixelFormat of the bitmap.
Returns
IImageCreateImage(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
public static IImage CreateImage(object image)
Parameters
image
object
IImage, System.Drawing.Image or SKBitmap instance.
Returns
IImageRemarks
The method can be called when assigning a native image programmatically to an IImageContainer, i.e PictureBox or CheckBox.