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:
public static class DrawingFactory
Inheritance: objectDrawingFactory
Properties
Gets or sets the current graphics engine. Setting the graphics engine is supported in .NET applications only. Member of GraphicsEngine.
public static GraphicsEngine CurrentGraphicsEngine { get; }
Methods
Creates and returns an IImage instance with provided parameters.
public static IImage CreateBitmap(int width, int height, PixelFormat format32bppArgb)
The width of the bitmap in pixels.
heightintThe height of the bitmap in pixels.
format32bppArgbPixelFormatThe PixelFormat of the bitmap.
Returns: IImageCreates 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.