几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】using Winbitmap.gs To Obtain A Bitmap (http://www.dimcax.com/hust/showthread.php?t=18959)

yang686526 2009-05-07 06:08 PM

【转帖】using Winbitmap.gs To Obtain A Bitmap
 
using "winbitmap.gs" to obtain a bitmap
using "winbitmap.gs" to obtain a bitmap
hi to all,
what i am trying to do is to obtain a bitmap preview for the drawing. for this purpose i use "winbitmap.gs" by calling:
code:
odgsmoduleptr pgs = ::odrxdynamiclinker()->loadmodule("winbitmap.gs", false);
odgsdeviceptr pdevice = pgs->createbitmapdevice();
there is no problem if i try to get 8 bitperpixel bitmap, but if i change it to be 24, a gray bitmap is obtained. changing the module to be "wingdi.gs" solves the problem, but we really need to use "winbitmap.gs".
so, the question is: is it possible to get a 24 bitperpixel bitmap by using winbitmap.gs and if it so, would you like to send a sample.
thanks in advance,
nino
it is a bug in raster conversion module. you can use a workaround for a while:
in exbitmapdevice::getrasterimage() at the last line do not return convert(), but return "this" if color depth is 24 bits.
vladimir
thanks a lot for the instant reply.


所有的时间均为北京时间。 现在的时间是 12:23 PM.