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 UI for Xamarin

    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
    • Forums
    • Videos
    • Blogs
    • Accessibility and Security
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class PaintingContext

Inheritance
System.Object
PaintingContext
GDIPaintingContext
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.RichTextEditor.UI
Assembly: Telerik.WinControls.RichTextEditor.dll

Syntax

public abstract class PaintingContext : IPaintingContext

Constructors

PaintingContext()

Declaration
protected PaintingContext()

Properties

ClipBounds

Declaration
public RectangleF ClipBounds { get; set; }
Property Value
System.Drawing.RectangleF

Implements
IPaintingContext.ClipBounds

ScaleFactor

Declaration
public SizeF ScaleFactor { get; protected set; }
Property Value
System.Drawing.SizeF

Implements
IPaintingContext.ScaleFactor

Methods

DrawEllipse(RectangleF, Pen)

Declaration
public abstract void DrawEllipse(RectangleF rectangle, Pen pen)
Parameters
System.Drawing.RectangleF rectangle

System.Drawing.Pen pen

Implements
IPaintingContext.DrawEllipse(RectangleF, Pen)

DrawImage(Image, RectangleF, Double)

Declaration
public abstract void DrawImage(Image image, RectangleF rectangle, double opacity)
Parameters
System.Drawing.Image image

System.Drawing.RectangleF rectangle

System.Double opacity

Implements
IPaintingContext.DrawImage(Image, RectangleF, Double)

DrawLine(PointF, PointF, Pen)

Declaration
public abstract void DrawLine(PointF startPoint, PointF endPoint, Pen pen)
Parameters
System.Drawing.PointF startPoint

System.Drawing.PointF endPoint

System.Drawing.Pen pen

Implements
IPaintingContext.DrawLine(PointF, PointF, Pen)

DrawLines(PointF[], Pen)

Declaration
public abstract void DrawLines(PointF[] pointF, Pen pen)
Parameters
System.Drawing.PointF[] pointF

System.Drawing.Pen pen

Implements
IPaintingContext.DrawLines(PointF[], Pen)

DrawPath(PointF[], Pen)

Declaration
public abstract void DrawPath(PointF[] pointF, Pen pen)
Parameters
System.Drawing.PointF[] pointF

System.Drawing.Pen pen

Implements
IPaintingContext.DrawPath(PointF[], Pen)

DrawPolygon(PointF[], Pen)

Declaration
public abstract void DrawPolygon(PointF[] pointF, Pen pen)
Parameters
System.Drawing.PointF[] pointF

System.Drawing.Pen pen

Implements
IPaintingContext.DrawPolygon(PointF[], Pen)

DrawRectangle(RectangleF, Pen)

Declaration
public abstract void DrawRectangle(RectangleF rectangle, Pen pen)
Parameters
System.Drawing.RectangleF rectangle

System.Drawing.Pen pen

Implements
IPaintingContext.DrawRectangle(RectangleF, Pen)

FillEllipse(RectangleF, Brush)

Declaration
public abstract void FillEllipse(RectangleF rectanlge, Brush color)
Parameters
System.Drawing.RectangleF rectanlge

System.Drawing.Brush color

Implements
IPaintingContext.FillEllipse(RectangleF, Brush)

FillPolygon(PointF[], Brush)

Declaration
public abstract void FillPolygon(PointF[] pointF, Brush brush)
Parameters
System.Drawing.PointF[] pointF

System.Drawing.Brush brush

Implements
IPaintingContext.FillPolygon(PointF[], Brush)

FillRectangle(RectangleF, Brush)

Declaration
public abstract void FillRectangle(RectangleF rectanlge, Brush color)
Parameters
System.Drawing.RectangleF rectanlge

System.Drawing.Brush color

Implements
IPaintingContext.FillRectangle(RectangleF, Brush)

InvertRectangle(RectangleF)

Declaration
public abstract void InvertRectangle(RectangleF rectangle)
Parameters
System.Drawing.RectangleF rectangle

Implements
IPaintingContext.InvertRectangle(RectangleF)

ResetTransformation()

Declaration
public void ResetTransformation()
Implements
IPaintingContext.ResetTransformation()

ResetTransformationOverride()

Declaration
protected abstract void ResetTransformationOverride()

ScaleTransformation(Single, Single)

Declaration
public void ScaleTransformation(float x, float y)
Parameters
System.Single x

System.Single y

Implements
IPaintingContext.ScaleTransformation(Single, Single)

ScaleTransformationOverride(Single, Single)

Declaration
protected abstract void ScaleTransformationOverride(float x, float y)
Parameters
System.Single x

System.Single y

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing 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.