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

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class RadImageSegment

Inheritance: objectRadImageSegment

Constructors

C#
public RadImageSegment(ImageSegments segment)
Parameters:segmentImageSegments

Properties

Gets or sets the image part associated with this object.

C#
public Image ImagePart { get; set; }
C#
public Padding RenderMargins { get; }

Gets the segment associated with this object.

C#
public ImageSegments Segment { get; }
C#
public Rectangle SourceRect { get; }

Methods

C#
public void Dispose()
C#
public Rectangle GetDestinationRect(Rectangle paintRect, Padding margins)
Parameters:paintRectRectanglemarginsPaddingReturns:

Rectangle

C#
public void UpdateFromImage(Image image, Padding margins)
Parameters:imageImagemarginsPadding
C#
public void UpdateSourceRect(Size imageSize, Padding margins)
Parameters:imageSizeSizemarginsPadding