Vision/AxisCamera.cpp
/**
 * Get an image from the camera and store it in the provided image.
 * @param image The imaq image to store the result in. This must be an HSL or RGB image
 * This function is called by Java.
 * @return 1 upon success, zero on a failure
 */
Get an image from the camera and store it in the provided image.
@param image The imaq image to store the result in. This must be an HSL or RGB image
This function is called by Java.
@return 1 upon success, zero on a failure
Get an image from the camera and store it in the provided image . @param image The imaq image to store the result in . This must be an HSL or RGB image This function is called by Java . @return 1 upon success zero on a failure
int AxisCamera::GetImage(Image* imaqImage)
{
	if (m_protectedImageBuffer == NULL)
		return 0;
	Synchronized sync(m_protectedImageSem);
	Priv_ReadJPEGString_C(imaqImage,
		(unsigned char*)m_protectedImageBuffer, m_protectedImageSize);
	m_freshImage = false;
	return 1;
}
int AxisCamera :: GetImage ( Image * imaqImage ) { if ( m_protectedImageBuffer == NULL ) return 0 ; Synchronized sync ( m_protectedImageSem ) ; Priv_ReadJPEGString_C ( imaqImage , ( unsigned char * ) m_protectedImageBuffer , m_protectedImageSize ) ; m_freshImage = false ; return 1 ; }
Get an image from the camera and store it in the provided image.
Get an image from the camera and store it in the provided image .