查看单个帖子
旧 2009-05-07, 12:23 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)