Visual Basic
C#
Managed Extensions for C++
C++/CLI
Parameters
- rect
- Rectangular region of the image to clear.
Clears all pixel values in the rectangular region of the image to 0.
With a bitonal image, setting all its bits to zero (0) results in an entirely white image. In other cases, the resulting image is entirely black.
If the opposite color is desired, use the Invert method to perform inversion of the region after having it cleared.