Thank you, I can certainly rewrite the rest of the pipeline to work with osg::Image, but I just needed to check if there was some easy method that I hadn't found yet myself.
regards, Jesper D. Thomsen ________________________________ From: [email protected] [[email protected]] On Behalf Of Jason Daly [[email protected]] Sent: Thursday, April 02, 2009 8:21 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Openscenegraph Image to Windows HBITMAP I believe an HBITMAP is more than just an array of pixels. It's more like a drawing context (HDC). I think no matter what you do, you'll have to create your HBITMAP from scratch and copy data to it. Do you really need an HBITMAP for what you're doing? --"J" Glenn Waldron wrote: Not sure, but the code in the "bmp" plugin might help. Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : +1.703.652.4791 2009/4/2 Jesper D. Thomsen <[email protected]<mailto:[email protected]>> Hi all, (and thank you for you help on previous occasions). I'm writing (in Visual studio 2005sp1) the Openscenegraph (2.6.1) part of an application for Windows (XP/Vista). I need to be able to record and take screenshots of my Openscenegraph viewports and also from non-viewport cameras. I'm going to do this with RTT cameras, and I'm implementing this now. However, I'm going to get my screenshots in the form of osg::Image and I need to convert them to HBITMAPs in order to use them further in the conversion chain of the application. Is there an easier method than reading the osg::image pixel for pixel and writing this to the HBITMAP? regards, and thanks in advance. Jesper D. Thomsen _______________________________________________ osg-users mailing list [email protected]<mailto:[email protected]> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

