JCL Help:RectCenter

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the center-point of the rectangle.


Pascal

 function RectCenter(const R: TRect): TPoint;


Parameters

Parameters Description
const R: TRect The rectangle.


Return Value

TPoint representing the center of the rectangle.


Description

RectCenter returns a TPoint which lies in the center of the rectangle. Note that if the width or height of the rectangle is odd, then the returned point does not lie exactly in the center of the rectangle. In such cases the point is 'rounded' towards the top-left corner.


About

Unit

JclGraphUtils


Donator

Pelle F. S. Liljendal


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page