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 <[email protected]>

> 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 <[email protected]>
>
> 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 <[email protected]>:
>>
>>>
>>>  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* pOldBitmap=dc.SelectObject(&bitmap);
>>>       dc.FillRect(&CRect(0,0,200,200),&CBrush(RGB(255,0,0)));
>>>
>>>       BITMAP bmp;
>>>       bitmap.GetBitmap(&bmp);
>>>
>>>       here,the bmp.bmBits is NULL because of DDB.
>>>
>>>     thanks for any advice
>>>
>>> forest
>>>
>>>
>>>
>>> ------------------------------
>>> 中 国 最 强 网 游 --- 网 易 梦 幻 西 游 ,166 万 玩 家 同 时 在 线
>>> <http://event.mail.163.com/chanel/click.htm?from=NO_26&domain=163>
>>>  _______________________________________________
>>> osg-users mailing list
>>> [email protected]
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>>
>>>
>>
>>
>> --
>> Glenn Waldron : Pelican Mapping : http://pelicanmapping.com :
>> 703-652-4791
>> _______________________________________________
>> osg-users mailing list
>> [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
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to