New to Telerik UI for WinFormsStart a free 30-day trial

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

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
[TypeConverter(typeof(RadImageShapeTypeConverter))]
public class RadImageShape : ICloneable

Inheritance: objectRadImageShape

Implements: ICloneable

Constructors

C#
public RadImageShape()

Fields

C#
public const string SerializationSeparator = ";"

Properties

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

C#
public float Alpha { get; set; }

Gets or sets the image to be rendered.

C#
public Image Image { get; set; }

Gets or sets the string representation of the

C#
[Browsable(false)]
public string ImageStream { get; set; }

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

C#
public InterpolationMode InterpolationMode { get; set; }

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

C#
public Padding Margins { get; set; }

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

C#
public Padding Padding { get; set; }

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

C#
public ImagePaintMode PaintMode { get; set; }

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

C#
public RotateFlipType RotateFlip { get; set; }

Gets or sets the SVG image to be rendered.

C#
public RadSvgImage SvgImage { get; set; }

Determines whether the image will be rendered using segments.

C#
public bool UseSegments { get; set; }

Determines which segments from the image will be painted.

C#
public ImageSegments VisibleSegments { get; set; }

Methods

C#
public object Clone()
Returns:

object

Implements: ICloneable.Clone()

C#
public static RadImageShape Deserialize(string state)
Parameters:statestringReturns:

RadImageShape

C#
public RadImageSegment GetSegment(ImageSegments segment)
Parameters:segmentImageSegmentsReturns:

RadImageSegment

C#
public virtual void Paint(Graphics g, RectangleF bounds, SizeF dpiScale)
Parameters:gGraphicsboundsRectangleFdpiScaleSizeF
C#
public virtual void Paint(Graphics g, RectangleF bounds)
Parameters:gGraphicsboundsRectangleF
C#
protected virtual void PaintCore(Graphics g, Rectangle paintRect)
Parameters:gGraphicspaintRectRectangle
C#
public void Rotate(int degree)
Parameters:degreeint
C#
public static string Serialize(RadImageShape shape)
Parameters:shapeRadImageShapeReturns:

string