查看单个帖子
旧 2009-05-07, 04:34 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】switching Between Wingdi And Winbitmap

switching between wingdi and winbitmap
switching between wingdi and winbitmap
i need to be able to switch between wingdi and winbitmap. i can do the device creation just fine, but i need to be able to get the resulting rasterimage pointer.
for wingdi i can use:
odgirasterimage* praster = odgirasterimageptr(pdevice->properties()->getat("rasterimage"));
and that works fine. however, for winbitmap that throws an exception.
how do i get the rasterimage pointer for a device derived from winbitmap?
btw: the devices are defined using:
odgsmoduleptr pgs;
odgsdeviceptr pdevice;
if (rastergs == gswinbitmap)
pgs = odrxdynamiclinker()->loadmodule("winbitmap.gs", false);
else
pgs = odrxdynamiclinker()->loadmodule("wingdi.gs");
pdevice = pgs->createbitmapdevice();
thanks.

i really need an answer to this. it should not be complicated, but i am missing something.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)