[vtkusers] HELP!! vtkPNGWriter
Helder Carvalho
hel_carvalho at hotmail.com
Wed Jul 2 19:37:34 EDT 2003
Hi vtkUsers,
Can anyone tell what am I doing wrong ??
void CImageCicle::ConvertBMPPNG(const char *fileNameBMP , const char*
fileNamePNG)
{
vtkBMPReader *vBMP = vtkBMPReader::New();
vBMP->SetDataByteOrderToLittleEndian();
vBMP->SetFileName(fileNameBMP);
vBMP->Update();
vtkPNGWriter *vPNG = vtkPNGWriter::New();
vPNG->SetInput(vBMP->GetOutput());
vPNG->SetFileName(filenamePNG);
vPNG->Write();
}
Because, it 'cracks' in vPNG->Write() !!!
Thanks in advance,
Helder
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
More information about the vtkusers
mailing list