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 UI for Silverlight UI for PHP UI for JSP
    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 UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder Design System Kit
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • 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>>)

Was this article helpful?

Tell us how we can improve this article

Skip
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.