LBitmap::Invert
#include "ltwrappr.h"
virtual L_INT LBitmap::Invert(void);
Inverts the colors in the class object's bitmap, making it like a photographic negative.
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
This function can also be used to invert the color of a 1-bit image, making the black white and the white black.
To update a status bar or detect a user interrupt during execution of this function, refer to LBase::EnableStatusCallback.
This function supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.
Required DLLs and Libraries
LTDIS For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
See Also
Example
LBitmap LeadBitmap;
LeadBitmap.Load(TEXT("image1.cmp"), 0,ORDER_BGR);
LeadBitmap.Invert();