查看单个帖子
旧 2009-05-04, 08:09 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】drawing region of the dwg into image file format 9bmp, jpg

drawing region of the dwg into image file format (bmp, jpg..
drawing region of the dwg into image file format (bmp, jpg...)
for my school project i need to read dwg file and make a thumbnail (for example in bmp or jpg format) from it. i have external graphical library. my application should be also able to make bmp/jpeg output from specified areas (for example to make image of area specified by rectangle of some width and height and off course its position).
i found, that the key is probably in gsdevice/gsvectorizedevice classes. using oda code example "odvectorizeex" i am able to call appropriate methods of my graphic library to draw objects of the entire drawing.
but, how do i force dwgdirect, to help me draw only objects in specified area/reagion?
i'm newbie in using dwgdirect. thanks for every advice, outlining the way or every piece of code.
thanks
jan
look at \examples\excustobjs\cmd_bmpout.cpp
this example creates bitmap for active layout of specified block. it also contains code for setting up view.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)