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 Graphics
Declaration
public static GraphicsEngine CurrentGraphicsEngine { get; }
Property Value
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. The width of the bitmap in pixels. |
System. The height of the bitmap in pixels. |
Pixel The Pixel |
Returns
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. IImage, System.Drawing.Image or SKBitmap instance. |
Returns
Remarks
The method can be called when assigning a native image programmatically to an IImageContainer, i.e PictureBox or CheckBox.