Hello,
I use Visual Studio 2005 in C#. My project is a library.
First
I'm a problem with the last param of ReadFile(CWIMAQIMAGE, Path, object ColorPalette)
in the docs, the last params is optional, but not in C#!!!
I have teste to put in to null, but I have a exception.
Second
I would like open my picture from a Bitmap object, but I'm not find any function to do this.
This is my class:
class NIVision
{
private CWIMAQImages image;
public NIVision(String path)
{
ReadFile(image, path, null);
}
public NIVision(Bitmap bmp)
{
// I would like put bmp to image
}
public Bitmap getResult()
{
// I don't know to do this
return image;
}
}
Can you help me to resolve these problems.
Thanks