几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】bmp export and whitespace (http://www.dimcax.com/hust/showthread.php?t=15253)

yang686526 2009-05-04 04:54 PM

【转帖】bmp export and whitespace
 
bmp export and whitespace
bmp export and whitespace
hello,
i have seen this problem on the forum but is addressed only in dwgdirectx. is there a solution for dwgdirect c++?
i have successfully exported drawings to bmp but it appears that zoomextents does not work. this results in a bmp file much larger than it should be.
my code goes as follows:
oddbobjectptr pvpobj = m_pdb->activeviewportid().safeopenobject(oddb::kforwrite );
oddbabstractviewportdataptr pavd(pvpobj);
odgsview* pview = pavd->gsview(pvpobj);
odabstractviewpeptr pvppe(pview);
odgeboundblock3d bbox;
bool bbboxvalid = pvppe->viewextents(pview, bbox);
bool bzoom = pvppe->zoomextents(pview, &bbox);
both viewextents and zoomextents return true.
zoomextents has no effect on the output image.
what am i doing wrong? i am using 2.4.1.
thanks...
last edited by robertpantangco@hotmail.com; 12th october 2007 at 05:03 amfff">. reason: additional info
does this happen with a specific file or with all files?
if it happens not with all files a sample would be helpful.
sergey slezkin


所有的时间均为北京时间。 现在的时间是 11:42 PM.