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