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
Inherited Members
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.
|
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.
|
Image
Gets or sets the image to be rendered.
Declaration
public Image Image { get; set; }
Property Value
System.
|
ImageStream
Gets or sets the string representation of the
Declaration
public string ImageStream { get; set; }
Property Value
System.
|
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.
|
Margins
Gets or sets the Padding structure that defines the margins of the segmented image.
Declaration
public Padding Margins { get; set; }
Property Value
System.
|
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.
|
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
System.
|
SvgImage
Gets or sets the SVG image to be rendered.
Declaration
public RadSvgImage SvgImage { get; set; }
Property Value
UseSegments
Determines whether the image will be rendered using segments.
Declaration
public bool UseSegments { get; set; }
Property Value
System.
|
VisibleSegments
Determines which segments from the image will be painted.
Declaration
public ImageSegments VisibleSegments { get; set; }
Property Value
Methods
Clone()
Declaration
public object Clone()
Returns
System.
|
Implements
Deserialize(String)
Declaration
public static RadImageShape Deserialize(string state)
Parameters
System.
|
Returns
GetSegment(ImageSegments)
Declaration
public RadImageSegment GetSegment(ImageSegments segment)
Parameters
Image
|
Returns
Paint(Graphics, RectangleF)
Declaration
public virtual void Paint(Graphics g, RectangleF bounds)
Parameters
System.
|
System.
|
Paint(Graphics, RectangleF, SizeF)
Declaration
public virtual void Paint(Graphics g, RectangleF bounds, SizeF dpiScale)
Parameters
System.
|
System.
|
System.
|
PaintCore(Graphics, Rectangle)
Declaration
protected virtual void PaintCore(Graphics g, Rectangle paintRect)
Parameters
System.
|
System.
|
Rotate(Int32)
Declaration
public void Rotate(int degree)
Parameters
System.
|
Serialize(RadImageShape)
Declaration
public static string Serialize(RadImageShape shape)
Parameters
Rad
|
Returns
System.
|
ShouldSerializeImageStream()
Declaration
public bool ShouldSerializeImageStream()
Returns
System.
|
ShouldSerializeMargins()
Declaration
public bool ShouldSerializeMargins()
Returns
System.
|
ShouldSerializePadding()
Declaration
public bool ShouldSerializePadding()
Returns
System.
|