Table of Contents

Constructor NineRects

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

NineRects(RectI, RectI)

Initializes a new instance of the NineRects class with the specified container and patch rectangles.

public NineRects(RectI container, RectI patch)

Parameters

container RectI

Rectangle to slice.

patch RectI

Rectangle which defines sliced parts.

Remarks

patch coordinates are not counted from top-left corner of the container, these rectangles are assumed to be siblings.

NineRects(RectD, RectD, float)

Initializes a new instance of the NineRects class with the specified container and patch rectangles.

public NineRects(RectD container, RectD patch, float scaleFactor)

Parameters

container RectD

The outer rectangle that defines the container area.

patch RectD

The inner rectangle that defines the patch area within the container.

scaleFactor float

The scale factor to convert from device-independent pixels (DIPs) to pixels.