[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtkusers
Subject:    Re: [vtkusers] Loading images from memory *not files*
From:       Dominik Szczerba <dominik () itis ! ethz ! ch>
Date:       2010-02-24 10:29:15
Message-ID: 4B84FF7B.40601 () itis ! ethz ! ch
[Download RAW message or body]

-----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-----
_______________________________________________
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic