How to create a empty rect?
How do i instantiate a empty Rect?
Rect ROI = NULL doesn't work...
It is very simple. Just think about your Rect element as a pointer to memory.
// Simply pointer initializing
Rect ROI;
// Pointer initializing and allocating memory
// Rect ROI (x, y, width, height);
Rect ROI (0, 0, 250, 250);
More information about every possible constructor of the Rect element can be found here.
Asked: 2015-04-01 07:42:08 -0600
Seen: 7,749 times
Last updated: Apr 01 '15