13.07.2015 Views

PA600 Programming Manual - Unitech

PA600 Programming Manual - Unitech

PA600 Programming Manual - Unitech

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.33. Get image (available for 2D model)Function Description:Retrieves captured image in bitmap format, and returns image size.Function call:HBITMAP USI_GetImageBitmap(SIZE* imagesize);Parameter: (output)imagesize: SIZE : Bitmap image sizeReturn:HBITMAP: image2.34. Resize image (available for 2D model)Function Description:Resizes a bitmap.Function call:HBITMAP USI_ResizeBitmap(HBITMAP hbmp, int cx, int cy, BOOL keepratio);Parameter: (input)hbmp: HBITMAP : the bitmap handle needs to be resized.cx: int: : cx define new width dimension of the bmp.cy int: : cy define new height dimension of the bmp.keepratio: BOOL: : If keepratio is true, it will resize the bmp to fit the cx-cyrectangle and keep the ratio of the original image.Return:HBITMAP: image2.35. Save image to file (available for 2D model)Function Description:Saves captured image to a file. The image format is determined by the file extension name, whichcan be .bmp, .jpg, .jpeg, .tif, .tiff or .raw. The compressionfactor is used for jpeg format.Function call:BOOL USI_SaveImageToFile(LPCTSTR filename, int compressionfactor);Parameter: (input)filename: LPCTSTR : File extension name defines format. HHP, SSIsupport .bmp, .jpg, and .tif. Tohken supports .bmp and .jpg.compressionfactor: int : compressionfactor is used for when format is jpg.Return:Always True.2.36. Get terminatorFunction Description:Returns terminator. The returned constant value is defined in USI_SetTerminator.Function call:int USI_GetTerminator();Return:Int: terminator-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!