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

yang686526 2009-05-06 04:16 PM

【转帖】is oddbrasterimagedefload90 working
 
is oddbrasterimagedef::load() working?
is oddbrasterimagedef::load() working?
is oddbrasterimagedef::load() working?
i add and image do database as it is done in onwriteex.
the only difference is that i call
pimagedef->load()
instead of
pimagedef->setimage(odgirasterimagedesc::createobject(1024 , 384, odgirasterimage::kinch));
because i want to draw database immediately after adding the image.
later oddbrasterimage::imagesize() returns size 1x1 pixel. is it correct?
also, oddbrasterimage is not drawed.
when i call also setimage before load, then load returns false.
tia
regards,
michał Śliwka
cadwork poland
loading of rastrer files is performed by rxrasterservices module (rxrasterservices.drx in dll version).
if it's not used in your application no rastrer files can be loaded.
if you use sample implementation provided with dwgdirect (examples/exservices/exgirasterimage) .bmp and jpeg files only can be loaded.
to handle other raster formats you need to provide your our implementation of this module.
exgirasterimage contains 2 sample implementation using jpeg-6b and snowbound libraries.
sergey slezkin


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