<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt">>You're right, I increment the
pointer in order to fill it but just after the<br>>"for" loop, I
decrement it in order to be back at the beginning of the<br>>pointer.
Do
you think it is still wrong ?<br><br>Oh, I didn't see that. But it is
hard to know because of the following:<br><br> /*unsigned long i, x;<br>
float * fImage;<br> pixList =
[new2DViewer pixList];<br> for(i=0;i<[pixList count]; i++){<br>
curPix = [pixList objectAtIndex:i];<br> x = height * width;<br>
fImage = [curPix fImage];<br> for(int j = 0;j<height;
j++) {<br> for(int k=0;k<width; k++){<br>
localBuffer[i+j*i+i*j*k] = fImage[j+j*k];<br> } <br>
}<br> }<br> <br>
NSRunCriticalAlertPanel(@"CptLocalBuffer", [NSString<br>stringWithFormat:@"Valeur
de cptLocalBuffer : %d ", cptLocalBuffer], nil,<br>nil, nil);<br>
NSRunCriticalAlertPanel(@"Nombre de pixels", [NSString<br>stringWithFormat:@"Valeur
de numberOfPixels : %d ", numberOfPixels], nil,<br>nil, nil);<br>
localBuffer -= cptLocalBuffer;<br><br>The first line in this part of the
code has the opening symbol for a C-style comment - does this compile as I
don't see the closing - I assumed you were attempting to comment out the
pixel by pixel copy using array index values. <br><br>Todd<br><div style="font-family: tahoma,new york,times,serif; font-size: 10pt;"><br></div>
</div></body></html>