[vtkusers] Loading images from memory *not files*
Dominik Szczerba
dominik at itis.ethz.ch
Wed Feb 24 05:29:15 EST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
PNG is a file format and PNGReader implements it. Nothing crazy here.
You need to create a vtkImage and populate its data via write pointer.
Robert Haines wrote:
> Hi all,
>
> Subject says it all really. I have an image (a PNG in this case but I'd like to be general here really) in memory and I'd like to use it in the normal VTK way - as if it had been read in by vtkPNGReader, for example. Is this possible? I've looked at the code for vtkPNGReader and it looks like the only way to read a PNG is from a file, which seems crazy! Have I missed something? Is there another way to do what I want?
>
> Thank you,
> Rob
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkuE/3YACgkQ/EBMh9bUuzKrdQCfUCI6IS9gwdoT3d/OwGz2an+h
tpMAn0ujl93Mz3MyzvR50BXwmCnEBnHe
=zUuI
-----END PGP SIGNATURE-----
More information about the vtkusers
mailing list