[vtkusers] Getting a vtkTexture object from a HBITMAP handle
Philippe Bruyant
pbruyant at yahoo.com
Tue Apr 15 15:45:20 EDT 2008
Dear VTK Users,
I am using VTK 5.0, Visual C++ 6.0, Vista.
I would like to use a bitmap resource located in my .exe file (it's NOT a bitmap file) as a texture for a cube.
My question is:
How can I make a vtkTexture object from an HBITMAP handle to my resource?
I can load the resource, save it to disk, then load the bitmap file and create the vtkTexture object
MyTexture->SetInputConnection(BMPReader->GetOutputPort());
but it's quite awkward, isn't it?
TXS
Phil
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080415/19652143/attachment.htm>
More information about the vtkusers
mailing list