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.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
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
|