Class
RadImageShape

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:

cs-api-definition
[TypeConverter(typeof(RadImageShapeTypeConverter))]
public class RadImageShape : ICloneable

Inheritance: objectRadImageShape

Implements: ICloneable

Constructors

RadImageShape()

Declaration

cs-api-definition
public RadImageShape()

Fields

SerializationSeparator

Declaration

cs-api-definition
public const string SerializationSeparator = ";"

Field Value

string

Properties

Alpha

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

Declaration

cs-api-definition
public float Alpha { get; set; }

Property Value

float

Image

Gets or sets the image to be rendered.

Declaration

cs-api-definition
public Image Image { get; set; }

Property Value

Image

ImageStream

Gets or sets the string representation of the

Declaration

cs-api-definition
[Browsable(false)]
public string ImageStream { get; set; }

Property Value

string

InterpolationMode

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

Declaration

cs-api-definition
public InterpolationMode InterpolationMode { get; set; }

Property Value

InterpolationMode

Margins

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

Declaration

cs-api-definition
public Padding Margins { get; set; }

Property Value

Padding

Padding

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

Declaration

cs-api-definition
public Padding Padding { get; set; }

Property Value

Padding

PaintMode

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

Declaration

cs-api-definition
public ImagePaintMode PaintMode { get; set; }

Property Value

ImagePaintMode

RotateFlip

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

Declaration

cs-api-definition
public RotateFlipType RotateFlip { get; set; }

Property Value

RotateFlipType

SvgImage

Gets or sets the SVG image to be rendered.

Declaration

cs-api-definition
public RadSvgImage SvgImage { get; set; }

Property Value

RadSvgImage

UseSegments

Determines whether the image will be rendered using segments.

Declaration

cs-api-definition
public bool UseSegments { get; set; }

Property Value

bool

VisibleSegments

Determines which segments from the image will be painted.

Declaration

cs-api-definition
public ImageSegments VisibleSegments { get; set; }

Property Value

ImageSegments

Methods

Clone()

Declaration

cs-api-definition
public object Clone()

Returns

object

Implements ICloneable.Clone()

Deserialize(string)

Declaration

cs-api-definition
public static RadImageShape Deserialize(string state)

Parameters

state

string

Returns

RadImageShape

GetSegment(ImageSegments)

Declaration

cs-api-definition
public RadImageSegment GetSegment(ImageSegments segment)

Parameters

segment

ImageSegments

Returns

RadImageSegment

Paint(Graphics, RectangleF)

Declaration

cs-api-definition
public virtual void Paint(Graphics g, RectangleF bounds)

Parameters

g

Graphics

bounds

RectangleF

Paint(Graphics, RectangleF, SizeF)

Declaration

cs-api-definition
public virtual void Paint(Graphics g, RectangleF bounds, SizeF dpiScale)

Parameters

g

Graphics

bounds

RectangleF

dpiScale

SizeF

PaintCore(Graphics, Rectangle)

Declaration

cs-api-definition
protected virtual void PaintCore(Graphics g, Rectangle paintRect)

Parameters

g

Graphics

paintRect

Rectangle

Rotate(int)

Declaration

cs-api-definition
public void Rotate(int degree)

Parameters

degree

int

Serialize(RadImageShape)

Declaration

cs-api-definition
public static string Serialize(RadImageShape shape)

Parameters

shape

RadImageShape

Returns

string