How can I get a float[]
for this IntPtr
so I can operate on it?
Or please let me know any method can be operated.
(I've tried using Array, Marshaling but all doesn't operate.)
Please see the following.
Any help would be appreciate!
IntPtr pt = IntPtr.Zero;
Camera.Memory.ToIntPtr(s32MemID, out pt);
MIL.MbufPut(MilImage, pt);
> C:\Ctest\idsCS\idsCS\Form1.cs(100,35): error CS1503: Argument '2': cannot convert from 'System.IntPtr' to 'float[]'
Syntax for those methods
uEye.Memory.ToIntPtr(out System.IntPtr ptr)
**uEye.Memory.ToIntPtr**(int s32MemId, out System.IntPtr ptr)
Description
Returns a pointer to the image memory of the active/given image memory ID.
Parameter
s32MemId(Image memory ID)
ptr(Pointer to the image memory)
void **MbufPut**(
MIL_ID DestBufId, //in
const void *UserArrayPtr //in
)
Use Marshal.Copy
(this overload: http://msdn.microsoft.com/en-us/library/a53bd6cz(v=vs.80).aspx )