查看单个帖子
旧 2009-05-07, 06:08 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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 = :drxdynamiclinker()->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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)