![]() |
【转帖】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. |