[vtkusers] Can't get the vtkBMPReader to work

Jeremy Winston jbw at ieee.org
Tue Feb 1 16:04:35 EST 2005

Nacho Larrabide wrote:
> Hi VtkUsers,
>    I'm using the cvs repository version of vtk, and I'm trying to
>    reafd a BMP-file series. My code is something like this:
>    vtkBMPReaber imr=vtkBMPReader::New();
>    imr->SetNumberOfScalarComponents(1);

I believe # of scalar components is 3 (R,G&B) unless you
set the Allow8BitBMP flag.  Try adding this line:



More information about the vtkusers mailing list