查看单个帖子
旧 2009-05-07, 05:46 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】unload Of Imagedef

unload of imagedef
unload of imagedef
i tried the following code fragment to unload image from imagedef object.
{
oddbrasterimagedefptr pimagedef = id.safeopenobject(oddb::kforwrite);
pimagedef->unload();
bool bisloaded = pimagedef->isloaded();
}
after its execution i can see that bisloaded == false. but for some reason in saved database dxf group 280 (load/unload flag) of imagedef equals to 1 (loaded).
i also tried to use
pimagedef->setimage(null);
instead of
pimagedef->unload();
but result is the same.
what am i doing wrong?
strange... dxf output uses the same function - isloaded():
code:
void oddbrasterimagedef::dxfoutfields(oddbdxffiler* pfiler) const
{
.....
pfiler->wrint8(280, odint8(isloaded() ? 1 : 0));
...
}
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)