![]() |
【转帖】dwf exportimport raster images
dwf export/import & raster images
dwf export/import & raster images i try implement dwf export/import functionality in our application. but during exporting dwg with raster image i get "access violation" in od2dexportview::rasterimageproc(...). in odamfcapp it works correctly so may be i need to do same extra initialization (rxrasterservices module already exist)? ps: is any way to load rasters from dwf, may be with saving it to temporary files? best regards, ivan obraztsov quote: originally posted by ivan obraztsov ps: is any way to load rasters from dwf, may be with saving it to temporary files? there is a bug in importing files containing bitmaps exported by dd. (will be fixed in 1.13) with other raster types all should work fine, as well as with all files published by autocad (not 3d ones though) after importing dwf, rasters are saved in the directory, where database is saved (and only when it is saved). quote: originally posted by ivan obraztsov but during exporting dwg with raster image i get "access violation" in od2dexportview::rasterimageproc(...). in odamfcapp it works correctly so may be i need to do same extra initialization (rxrasterservices module already exist)? do you get it at the export to dwf from odamfcapp or using your implementation? could you send a sample file in case of odamfcapp. misha kuzinets thank you for replies. to wvk: i'll try it after implement loading raster from stream. to misha kuzinets: error is appeared in our application that used dd_xxx_dwfexport.lib, dd_xxx_dwfimport.lib and dd_xxx_dwftoolkit.lib. in odamfcapp it works correctly. so i think that i forgot make some initializations or anything else. ps: could you please send me project files to build these libs (specified above). i already have dwf and whip toolkits. best regards, ivan obraztsov there is one more bug with dwf import. the attached file contain 3 different rasters, but after import only one file is saved to disk and inserted in 3 different locations in dwg. attached files (23.6 kb, 3 views) best regards, ivan obraztsov this is a bug indeed. it seems that nobody tried to import dwf with several images, created by autocad. bug will be fixed in 1.13 i may send you corrected sources though, because they seem to have 'sample' status. thank you wvk! yes, send me please new sources: ivan(sobaka)csoftcom.com. best regards, ivan obraztsov i have a strange bug with exporting dwg with rasters to dwf. i implement own raster service derived from exrastermodule and override gsbitmapdevice() in class derived from exsystemservices. but loadrasterimage() doesn't called during export so oddwfdevice::dc_raster_image(...) get invalid pointer "praster". i try to explorer this situation with disassembler. it show that oddbrasterimagedefimpl::image() doesn't call oddbrasterimagedefimpl::load(). in odamfcapp it works fine... strange... best regards, ivan obraztsov any ideas? best regards, ivan obraztsov quote: originally posted by ivan obraztsov it show that oddbrasterimagedefimpl::image() doesn't call oddbrasterimagedefimpl::load() please, check that the image was found. your case can happen if the image-is-loaded flag is false, or image file was not found, or oddbrasterimagedefimpl::setimage() happened before loading. if one of conditions is wrong the load() is ignored. misha kuzinets last edited by misha kuzinets; 19th november 2004 at 08:47 amfff">. thank you! i really create oddbrasterimagedef with dummy odgirasterimagedesc. so it wasn't loaded. i add call: code: pimagedef->load(); after pimagedef->setimage(...) and now it works ok. best regards, ivan obraztsov |
所有的时间均为北京时间。 现在的时间是 11:21 AM. |