[vtkusers] QImage into VTK??

Prashanth Udupa prashanth.udupa at gmail.com
Tue Feb 23 22:53:12 EST 2010


There is a vtkQImageToImageSource class in CVS. You could use that.
http://www.vtk.org/doc/nightly/html/classvtkQImageToImageSource.html

Thanks and Regards,
Prashanth

On Wed, Feb 24, 2010 at 7:04 AM, Banks, Robert <banks at wai.com> wrote:
> Hi all,
>
>
>
> So I am trying to import a PNG image into VTK. I know there is a
> vtkPNGReader, but the image in question is stored within the QResource file
> within the application and there is no obvious way to access this from VTK.
>
>
>
> I can however, port the image to QImage format within the application and
> then find the pointer to the start of the data, width, height, etc.
>
>
>
> Has anyone, take this raw QImage data and form it into vtkImageData????
>
>
>
> Thanks
>
> Robbie
>
>
>
>
>
> ---------------------------------------------------------------------------------------------------
> Weidlinger Associates, Inc. made the following annotations.
>
> “This message and any attachments are solely for the intended recipient and
> may contain confidential or privileged information. If you are not the
> intended recipient, any disclosure, copying, use, or distribution of the
> information included in this message and any attachments is prohibited. If
> you have received this communication in error, please notify us by reply
> e-mail and immediately and permanently delete this message and any
> attachments. Thank you.”
>
> “Please consider our environment before printing this email.”
>
> _______________________________________________
> 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
>
>



-- 
Thanks and Warm Regards,
Prashanth N Udupa

prashanth.udupa at gmail.com
http://www.prashanthudupa.com
http://prashanthudupa.livejournal.com/



More information about the vtkusers mailing list