![]() |
【转帖】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 |
所有的时间均为北京时间。 现在的时间是 09:11 PM. |