invert_region


bool invert_region(handle device,
                   handle region)

This function color inverts a region.

Parameters

handle device

The handle of the device context.

handle region

The handle of the region to be inverted.

Return

bool

true The function succeeded.
false The call failed.

Notes

The region's coordinates are assumed to be logical coordinates.

A logical not is performed on the color values of the given region.

If this function is called twice for the same region, the region is restored to its original color.