高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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.
|