ClassRadImageShape
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:
[TypeConverter(typeof(RadImageShapeTypeConverter))]
public class RadImageShape : ICloneable
Inheritance: objectRadImageShape
Implements:
Constructors
RadImageShape()
Declaration
public RadImageShape()
Fields
Properties
Alpha
Gets or sets the opacity of the rendered image. Valid values are within the interval [0, 1].
Image
Gets or sets the image to be rendered.
ImageStream
Gets or sets the string representation of the
Declaration
[Browsable(false)]
public string ImageStream { get; set; }
Property Value
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
Margins
Gets or sets the Padding structure that defines the margins of the segmented image.
Padding
Gets or sets the Padding structure that defines offset when the image is rendered to the destination rectangle.
PaintMode
Gets or sets the mode to be used when image is painted.
Declaration
public ImagePaintMode PaintMode { get; set; }
Property Value
RotateFlip
Gets or sets the RotateFlipType value that defines additional transform on the rendered image.
Declaration
public RotateFlipType RotateFlip { get; set; }
Property Value
SvgImage
Gets or sets the SVG image to be rendered.
UseSegments
Determines whether the image will be rendered using segments.
VisibleSegments
Determines which segments from the image will be painted.
Declaration
public ImageSegments VisibleSegments { get; set; }
Property Value
Methods
Deserialize(string)
Declaration
public static RadImageShape Deserialize(string state)
Parameters
state
Returns
GetSegment(ImageSegments)
Declaration
public RadImageSegment GetSegment(ImageSegments segment)
Parameters
segment
Returns
Paint(Graphics, RectangleF)
Declaration
public virtual void Paint(Graphics g, RectangleF bounds)
Parameters
g
bounds
Paint(Graphics, RectangleF, SizeF)
Declaration
public virtual void Paint(Graphics g, RectangleF bounds, SizeF dpiScale)
Parameters
g
bounds
dpiScale
Serialize(RadImageShape)
Declaration
public static string Serialize(RadImageShape shape)
Parameters
shape
Returns