几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】switching Between Wingdi And Winbitmap (http://www.dimcax.com/hust/showthread.php?t=18699)

yang686526 2009-05-07 04:34 PM

【转帖】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.


所有的时间均为北京时间。 现在的时间是 02:55 AM.