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 RadImageShape

Represents an image which may be divided in 9 different segments where only the inner one is stretched within the paint rectangle.

Inheritance
System.Object
RadImageShape
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
Assembly: Telerik.WinControls.dll

Syntax

public class RadImageShape : ICloneable

Constructors

RadImageShape()

Declaration
public RadImageShape()

Fields

SerializationSeparator

Declaration
public const string SerializationSeparator = ";"
Field Value
System.String

Properties

Alpha

Gets or sets the opacity of the rendered image. Valid values are within the interval [0, 1].

Declaration
public float Alpha { get; set; }
Property Value
System.Single

Image

Gets or sets the image to be rendered.

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

ImageStream

Gets or sets the string representation of the

Declaration
public string ImageStream { get; set; }
Property Value
System.String

InterpolationMode

Gets or sets the interpolation mode to be applied on the device context when image is rendered.

Declaration
public InterpolationMode InterpolationMode { get; set; }
Property Value
System.Drawing.Drawing2D.InterpolationMode

Margins

Gets or sets the Padding structure that defines the margins of the segmented image.

Declaration
public Padding Margins { get; set; }
Property Value
System.Windows.Forms.Padding

Padding

Gets or sets the Padding structure that defines offset when the image is rendered to the destination rectangle.

Declaration
public Padding Padding { get; set; }
Property Value
System.Windows.Forms.Padding

PaintMode

Gets or sets the mode to be used when image is painted.

Declaration
public ImagePaintMode PaintMode { get; set; }
Property Value
ImagePaintMode

RotateFlip

Gets or sets the RotateFlipType value that defines additional transform on the rendered image.

Declaration
public RotateFlipType RotateFlip { get; set; }
Property Value
System.Drawing.RotateFlipType

SvgImage

Gets or sets the SVG image to be rendered.

Declaration
public RadSvgImage SvgImage { get; set; }
Property Value
RadSvgImage

UseSegments

Determines whether the image will be rendered using segments.

Declaration
public bool UseSegments { get; set; }
Property Value
System.Boolean

VisibleSegments

Determines which segments from the image will be painted.

Declaration
public ImageSegments VisibleSegments { get; set; }
Property Value
ImageSegments

Methods

Clone()

Declaration
public object Clone()
Returns
System.Object

Implements
System.ICloneable.Clone()

Deserialize(String)

Declaration
public static RadImageShape Deserialize(string state)
Parameters
System.String state

Returns
RadImageShape

GetSegment(ImageSegments)

Declaration
public RadImageSegment GetSegment(ImageSegments segment)
Parameters
ImageSegments segment

Returns
RadImageSegment

Paint(Graphics, RectangleF)

Declaration
public virtual void Paint(Graphics g, RectangleF bounds)
Parameters
System.Drawing.Graphics g

System.Drawing.RectangleF bounds

Paint(Graphics, RectangleF, SizeF)

Declaration
public virtual void Paint(Graphics g, RectangleF bounds, SizeF dpiScale)
Parameters
System.Drawing.Graphics g

System.Drawing.RectangleF bounds

System.Drawing.SizeF dpiScale

PaintCore(Graphics, Rectangle)

Declaration
protected virtual void PaintCore(Graphics g, Rectangle paintRect)
Parameters
System.Drawing.Graphics g

System.Drawing.Rectangle paintRect

Rotate(Int32)

Declaration
public void Rotate(int degree)
Parameters
System.Int32 degree

Serialize(RadImageShape)

Declaration
public static string Serialize(RadImageShape shape)
Parameters
RadImageShape shape

Returns
System.String

ShouldSerializeImageStream()

Declaration
public bool ShouldSerializeImageStream()
Returns
System.Boolean

ShouldSerializeMargins()

Declaration
public bool ShouldSerializeMargins()
Returns
System.Boolean

ShouldSerializePadding()

Declaration
public bool ShouldSerializePadding()
Returns
System.Boolean

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.