hi, everybody,
i have question again, this time is about GetImagePixelPointer.vi and VC-dll.
In Vc dll-code, I put a Picture in a memory like this:
----------------------------------
unsigned long *endImg;
int LineWidthT;
...
for (x=0; x<imgWidth; x++)
for (y=0; y<imgHeight; y++)
{
(endImg+y*(LineWidthT)+x)=expa.ReadPixel(x,y);
.....
}
.....
---------------------------------------
but it can store only one picture, how should i define this imagePointer "endimg", so that i can store many pictures in this? I mean this endImg is a 1-dim array like
--------------------------------------
unsigned long *endImg;
int LineWidthT;
...
for (k=0,;k<lev;k++)
for (x=0; x<imgWidth; x++)
for (y=0; y<imgHeight; y++)
{
*(endImg+LineWidthT*(y+imgHeight*k)+x)=expa.ReadPixel(x,y);
.....
}
.....
--------------------------------------
the compilling is successful, but it does'nt work in Labview, have you some idears?
thanks