User Profile
Collapse
-
I got it working, needed to change a setting - set the trigger mode to internal. Using fixed worked great. -
Please usetagsCode:...
The real issue I can't solve is how to pass a void * as a parameter to the dll.
...Code:[DllImport( "DCamLIB.dll" )] private unsafe static extern bool DcamCapture( int* imageBuffer, Int32 bufferSize ); public unsafe void CaptureReverseX( Int32 bufferSize ) { fixed ( int* buf = new int[ bufferSize ] ) { if ( !DcamCapture( ImageBuffer, bufferSizeLeave a comment:
-
> What kind of camera is this?
X-Ray
> Are you receiving a buffersize from the above function that makes sense for the size of the image you are expecting?
Yes, it is is returning the correct width and height variables - 1000 x 1500Leave a comment:
-
PInvoke void * parameter
Here is the unmanged definition:
...Code://============================================================================ // DcamCapture() // Start to acquire one image from the camera. // --------------------------------------------------------------------------- // [Argument] // pImageBuff : /O: Specify the start address in the buffer where image // data is to be stored. // nBuffSize :I/ : Specify
No activity results to display
Show More
Leave a comment: