几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】rasterize a dwg to an existing bitmap (http://www.dimcax.com/hust/showthread.php?t=18325)

yang686526 2009-05-07 12:23 PM

【转帖】rasterize a dwg to an existing bitmap
 
rasterize a dwg to an existing bitmap
rasterize a dwg to an existing bitmap
hi,
i need to be able to rasterize the contents of a dwg
to a bitmap wich may or may not already contain other
information, so i need to control wether or not the bitmap
is cleared before the rasterisation.
i have been looking into the examples wingdi, winbitmap
odvectorizeex and so on, but i am afraid i get a bit lost
in all the classes used. i can see it is being used in the
odamfcapp sample, but then it is used in the context of
a view, which i will not have. i will just have a hdc from
createcompatibledc() with a hbitmap selected into it
from createcompatblebitmap(). i will draw some things
into this hdc/hbitmap, and then want to rasterize the
contents of a dwg over this information without first
clearing the background. in addition to this i use my
own world to pixel (device) transformation, so i will
have to be able to tell the rasteriser what transformation
to use.
suggestions would be very welcome!!!
kind regards,
jeroen posch.


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