[vtkusers] How to get image dimensions

John Mosso j-mosso at uniandes.edu.co
Mon Oct 11 21:22:51 EDT 2004


Greetings!

I'm trying to get the dimension of a bmp file using vtkBMPReader. I'm using GetDataExtent but I only get a vector with zeros.
This is the code I'm using for:

bmpReader = vtkBMPReader::New();
bmpReader->SetFileName("C:\\MyFile.bmp");

int Extent[6];
bmpReader->GetDataExtent(Extent);

Thanks in advance
John Mosso.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20041011/b9c1383b/attachment.htm>


More information about the vtkusers mailing list