Hi,

Does anybody know how i can create a crgn from a line.

Th thing is that i want the CRgn to be 1px bigger than the line.

ex :

0,0
._________________________
| -------------------------------------- |
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯26,3

it have to works with diagonals and the starting point of the line can be any of the 2 points.
I store this information in a struct like
struct {
int x;
int y;
int w;
int h;
}