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.
Inheritance
Namespace: Telerik.Drawing.Contract
Assembly: Telerik.Reporting.dll
Syntax
public static class DrawingFactory
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
GraphicsEngine
|
Methods
CreateBitmap(Int32, Int32, PixelFormat)
Creates and returns an IImage instance with provided parameters.
Declaration
public static IImage CreateBitmap(int width, int height, PixelFormat format32bppArgb)
Parameters
System.Int32
width
The width of the bitmap in pixels. |
System.Int32
height
The height of the bitmap in pixels. |
PixelFormat
format32bppArgb
The PixelFormat of the bitmap. |
Returns
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
public static IImage CreateImage(object image)
Parameters
System.Object
image
IImage, System.Drawing.Image or SKBitmap instance. |
Returns
IImage |
Remarks
The method can be called when assigning a native image programmatically to an IImageContainer, i.e PictureBox or CheckBox.