Method GetPartsScaled
GetPartsScaled(NineRectsParts)
Returns an array of rectangular regions corresponding to the specified parts of the nine-part grid. This method allows you to retrieve specific rectangles based on the provided flags, which can represent any combination of the defined parts. This method returns scaled rectangles, converting them from pixels to device-independent pixels (DIPs) using the specified scale factor. The returned rectangles reflect the current scaling transformation, ensuring that they are appropriately sized for rendering on different display densities.
public readonly RectD[] GetPartsScaled(NineRects.NineRectsParts part)
Parameters
partNineRects.NineRectsPartsA bitwise combination of NineRects.NineRectsParts values that specifies which parts of the grid to include.
Returns
- RectD[]
An array of RectI objects representing the requested parts. The array is empty if no matching parts are specified.
Remarks
The order of rectangles in the returned array matches the order of the NineRects.NineRectsParts flags as defined in the grid: top-left, top-center, top-right, center-left, center, center-right, bottom-left, bottom-center, and bottom-right. Duplicate flags are ignored.