![]() |
【转帖】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. |