The Nevron NSegmentedImage object allows for an image to be stretched without quality loss. The associated image is divided into 9 segments depending on the specified margins.
Following is a list describing the 9 logical segments:
-
TopLeft - uses the Margins.Left and Margins.Top values to determine the source rect from the provided image associated with the .
-
Top - uses the Margins.Left, Margins.Top and Margins.Right values to determine the source rect from the provided image.
-
TopRight - uses the Margins.Top and Margins.Right values to determine the source rect from the provided image.
-
Right - uses the Margins.Top, Margins.Right and Margins.Bottom values to determine the source rect from the provided image.
-
BottomRight - uses the Margins.Right and Margins.Bottom values to determine the source rect from the provided image.
-
Bottom - uses the Margins.Left, Margins.Right and Margins.Bottom values to determine the source rect from the provided image.
-
BottomLeft - uses the Margins.Left and Margins.Bottom values to determine the source rect from the provided image.
-
Left - uses the Margins.Top, Margins.Left and Margins.Bottom values to determine the source rect from the provided image.
-
Inner - the remaining inner source of the image is stretched using the default processing of Graphics.DrawImage method.