TRectRounding

Graphics32

TRectRounding

type TRectRounding = (rrClosest, rrOutside, rrInside);

Desctiption

TRectRounding type is involved in conversion from TFloatRect/TFixedRect to TRect. It specifies how the coordinates are rounded:

  • rrClosest – a simple Round() function is used for each coordinate;
  • rrOutside – Floor() is used for Left and Top; Ceil() – for Right and Bottom;
  • rrInside – Ceil() is used for Left and Top; Floor() – for Right and Bottom;

See Also

Creating Rectangles, TFixedRect, TFloatRect, TRect