InetSendDIB Example for C++ 5.0 and later
void CNet::Method()
{
ILEADRasterIO *pRasterIO=NULL;
ILEADRasterProcess *pRasterProc=NULL;
long hDIB;
if(m_LEADRasterView1.GetRaster().GetBitmap() == 0)
{
CoCreateInstance(CLSID_LEADRasterIO,
NULL, CLSCTX_ALL, IID_ILEADRasterIO, (void**)&pRasterIO);
pRasterIO->Load(m_LEADRasterView1.GetRaster(),
"o:\\images\\new\\001.jpg", 0, 1, 1);
pRasterIO->Release();
}
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL,
IID_ILEADRasterProcess, (void**)&pRasterProc);
pRasterProc->Flip(m_LEADRasterView1.GetRaster());
pRasterProc->Release();
//send the images to the remote computer
hDIB = m_LEADRasterView1.GetRaster().GetDIB();
m_pRasterInet->InetSendDIB(hDIB,
FILE_CMP, 24, (QFactorConstants)75);
GlobalFree((HGLOBAL)hDIB);
}