Evo dosao sam do izvlacenja slike...
u C++ pise ovako
Code:
protected:
uint8* m_pRawImage;
f(AT_OK == ATCopyImagePixels(m_pRawImage, pApiMsg->pMessageData))
pFingerprintWnd->SetImage(m_pRawImage, wImageWidth, wImageHeight);
ovo je funkcija iz dll...
Code:
/////////////////////////////////////////////////////////////////////////////
//
// Function: ATCopyImagePixels( uint8* pPixelBuffer
// void* pImageItem)
//
// Purpose: Copys the raw pixels from an internal image buffer into
// the users buffer. The user buffer must be large enough to hold all
// the pixel data. Normally the appication will call ATGetImagePixelBufferSize
// to determine the size of the buffer to allocate.
//
// Parameters: pPixelBuffer: Pointer to user buffer for the raw pixel data
// pImageItem: Pointer to the internal image struct.
//
// Returns: AT_OK or AT_INVALID_PARAMETER
//
/////////////////////////////////////////////////////////////////////////////
ATDLL_API AT_RESULT_CODE __stdcall ATCopyImagePixels(uint8* pPixelBuffer, void* pImageItem);
Neznam kako da dobije tu sliku m_pRawImage
pApiMsg->pMessageData imam
definirao sam ovako...
Code:
TATCopyImagePixels = function(var pPixelBuffer: PChar; const pImageItem: AT_API_MSG_TYPES): AT_RESULT_CODES; stdcall;
Ovako pozivam
Code:
var ai: PChar;
ATCopyImagePixels(ai, Poruka);
ali dobivam nazad poruku da je invalid parameter