Hi, int dim[2]; reader->getoutput()->GetDimensions(dim); int numofPix = dim[0] * dim[1]; Hope it help! Yixun Liu -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040721/9bd460bb/attachment.htm>