[vtkusers] Loading images from memory *not files*

Robert Haines rhaines at manchester.ac.uk
Wed Feb 24 05:06:41 EST 2010


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




More information about the vtkusers mailing list