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
 
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to