Wiahelper - WIA Assistant Library

xiaoxiao2021-03-06  102

BMP / JPG can be obtained from WIA devices (such as digital cameras, cameras, Webcam, etc.) (simultaneous access to one or more ways) and can only get images to files. To get data in memory, you need to implement iDatacallback to transfer data, if you have any questions, you can contact me.

Namespace WiaHelper {// message: If the image is ready, the parent window will receive a WM_COMMAND message // Parameter: loword (wparam) is IDC_WiaHelper, HiWord (WPARAM) is the total number of images // Returns: If you return S_FALSE, No longer transferred image // Note: After receiving this message, you can call TransferImage () to get the image to the file in the file. Const Word IDC_WiaHelper = 45123; // Get a number of WIA devices ULONG WINAPI getDeviceCount (); // Function: from You get an image to the file in the WIA device // Return: Returns True means successful or user cancel, other indication failed // Note: If the call is successful, the image file Bool WinApi GetImage specified by PTZFileName (PCTSTR PTZFILENAME, HWND HPARENT = Null ); // Function: In the WIA device, notify the parent window // in the form of a message callback // Return: Return true to success or user cancel, other indication failed // Remarks: If the call is successful, when the image is ready When you are good, the parent window will go to the WM_COMMAND message, please refer to IDC_WiaHelper's instructions BOOL WINAPI GetImage (HWND HParent); // Transfer an image to the file Bool WinAPI TransferImage (PCTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTS

转载请注明原文地址:https://www.9cbs.com/read-100633.html

New Post(0)