#include "ltwrappr.h"
virtual L_INT LBitmap::AddMessage (pAddMesgInfo, uFlags)
pADDMESGINFO pAddMesgInfo; |
pointer to a structure |
L_UINT32 uFlags; |
flags |
Adds a message (text or file) to the specified bitmap. The message is specified by the pAddMesgInfo parameter.
Parameter |
Description |
pAddMesgInfo |
Pointer to an ADDMESGINFO structure that contains information about the message that will be added. |
uFlags |
Reserved for future use. Must be 0. |
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
The purpose of this function is for security since the message added will be embedded into the image without any visible changes and the resulting image has the same size as the original.
This function can add messages to any type of lossless image format such as bmp, tiff, lossless jpeg, and so forth. If used with lossy format types the message may be corrupted or lost.
This function supports 24- and 48-bit images, and 8- and 16-bit grayscale images.
To extract the embedded message use the LBitmap::ExtractMessage function.
This function supports signed data images.
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.
Required DLLs and Libraries
LTIMGEFX For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Win32, x64.
Functions: |
|
Topics: |
Raster Image Functions: Getting and Setting File Information |
|
L_INT LBitmap__AddMessageExample(LAnimationWindow * LAniWnd)
{
pADDMESGINFO pAddMesgInfo;
pAddMesgInfo = new ADDMESGINFO;
if(!pAddMesgInfo)
return -1;
memset(pAddMesgInfo, 0, sizeof(ADDMESGINFO));
pAddMesgInfo->uStructSize = sizeof(ADDMESGINFO);
pAddMesgInfo->pStrMsg = new L_TCHAR[200];
if(!pAddMesgInfo->pStrMsg)
return -1;
lstrcpy(pAddMesgInfo->pStrMsg, TEXT("LEAD Technologies, Inc."));
return LAniWnd->AddMessage(pAddMesgInfo);
}
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET