几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】drawing region of the dwg into image file format 9bmp, jpg (http://www.dimcax.com/hust/showthread.php?t=15794)

yang686526 2009-05-04 08:09 PM

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


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