[vtkusers] a simple question

Obada Mahdi omahdi at gmx.de
Wed Dec 6 22:53:43 EST 2006


Hi,

On 12/7/06, u liu <lsenlee at yahoo.com.cn> wrote:
>               the name of picture is named like this
>                  yu01.bmp,yu02.bmp............
[...]
>              the picture is exsit in the E:\bmp1\,
[...]
>          v8->SetFilePattern("%s%2d.bmp");
[...]
> the error:
> ERROR: In ..\..\VTK\IO\vtkBMPReader.cxx, line 95
> vtkBMPReader (017D6E70): Unable to open file E:\bmp1\yu 1.bmp

try adjusting the filename pattern to
  v8->SetFilePattern("%s%02d.bmp");
Without the '0' flag, numbers are padded with spaces instead of zeros;
this is just standard printf()-style format string behavior.


HTH,

Obada



More information about the vtkusers mailing list