[vtkusers] vtkImageImport and RGB colouing
Pedram Rezaei
pr at marinecomputing.com
Fri May 14 08:42:35 EDT 2004
Hi all,
I am importing a bitmap from a memory device context (Win32) into VTK.
Unfortunately the bitmap in memory is laid out in BGR format instead of
RGB. So far I have managed to overcome the problem by manually swapping
Blue with Red values for every single pixel. Is there an easy way to
tell the vtkImageImport to assume that the imported format is BGR?
Thanks,
Pedram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040514/655d1e0d/attachment.htm>
More information about the vtkusers
mailing list