skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Use Reports in Applications
    • System Requirements
    • Forums
    • Videos
    • Blogs
    • Submit a Ticket
    • FAQs
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now
Search all

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
System.Object
DrawingFactory
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

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

IImage

Remarks

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

Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.