Re: [osg-users] how to convert DDB bitmap to osg::Image?

2009-04-16 Thread Can T. Oguz
Hi Glenn, I do have some code to convert the DIB to an image if you need help on that end of it. I need to convert a device independent bitmap to osg::Image. Do you still have that DIB to osg::Image stuff? Regards, Can 2008/5/14 Glenn Waldron gwald...@gmail.com Forest, You may need to

Re: [osg-users] how to convert DDB bitmap to osg::Image?

2009-04-16 Thread Glenn Waldron
Can, I'll see if I can dig it up. Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : +1.703.652.4791 2009/4/16 Can T. Oguz cto...@gmail.com Hi Glenn, I do have some code to convert the DIB to an image if you need help on that end of it. I need to convert a device independent

[osg-users] how to convert DDB bitmap to osg::Image?

2008-05-14 Thread forest37
hello everyone, I want to draw something in memory dc ,then convert the drawing to osg::Image. I tried it like this: CDC dc; dc.CreateCompatibleDC(NULL); CBitmap bitmap; bitmap.CreateCompatibleBitmap (dc, 100, 100); CBitmap*

Re: [osg-users] how to convert DDB bitmap to osg::Image?

2008-05-14 Thread Robert Osfield
Hi Forest, There isn't any OSG code in your example, so it is that you have a stumbling block before you even start trying to pass data to the osg::Image? As for examples of setting up osg::Image have a look through the various image plugins such as src/osgPlusgins/rgb, png, tga etc. Robert.

Re: [osg-users] how to convert DDB bitmap to osg::Image?

2008-05-14 Thread Glenn Waldron
Forest, You may need to convert the DDB to a DIB and then use GetDIBits to convert the DIB to an osg::Image. Reference: http://www.codeguru.com/cpp/g-m/bitmap/article.php/c1765/ I do have some code to convert the DIB to an image if you need help on that end of it. Glenn 2008/5/14 forest37