Applies an anti-aliasing filter to the class object's bitmap.
#include "ltwrappr.h"
L_INT LBitmap::AntiAlias2(nThreshold, uDim, uFilter, uFlags = 0)
Threshold value that indicates which pixels to smooth. The application of the anti-aliasing filter on the image associates a value with each pixel. Only pixels with values above this threshold are smoothed.
Value that indicates the size of the anti-aliasing mask. For example, a value of three indicates an anti-aliasing mask of 3 X 3.
Flag that indicates the type of anti-aliasing filter to use. Possible values are:
Value | Meaning |
---|---|
ANTIALIAS_1 | [0x0000] Anti-alias the bitmap vertically and horizontally. |
ANTIALIAS_2 | [0x0001] Anti-alias the bitmap in all directions. |
ANTIALIAS_3 | [0x0002] Anti-alias the bitmap in all directions. The filter used for this option is different from the filter used for the ANTIALIAS_2 option. |
ANTIALIAS_DIAG | [0x0003] Anti-alias the bitmap diagonally. This is the default value. |
ANTIALIAS_HORZ | [0x0004] Anti-alias the bitmap horizontally. |
ANTIALIAS_VERT | [0x0005] Anti-alias the bitmap vertically. |
Reserved for future use. Pass NULL or 0.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
The best results for anti-aliasing text can be obtained with the filter ANTIALIAS_2.
The value of the uDim parameter determines the extent of the anti-aliasing.
This function can process the whole image or a region of the image.
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.
This function support Signed Data Images.
The threshold valid values are:
This function does not support 32-bit grayscale images. It returns the error code ERROR_GRAY32_UNSUPPORTED if a 32-bit grayscale image is passed to this function.
Win32, x64.
L_INT LBitmap__AntiAlias2Example(LBitmap & Bitmap, L_TCHAR * szFile)
{
L_INT nRet;
nRet =Bitmap.Load(szFile);
if(nRet !=SUCCESS)
return nRet;
nRet =Bitmap.AntiAlias2(128, 3, ANTIALIAS_1);
if(nRet !=SUCCESS)
return nRet;
return SUCCESS;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.