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

yang686526 2009-05-07 12:22 PM

【转帖】raster images and odgirasterimage
 
raster images and odgirasterimage
raster images and odgirasterimage
in my vectorizer, i do not use rasterimageproc (because it is never called and i do not know why, exrastermodule is includede) and so i have my own raster image procedure. it works fine, for example i get
//oddbrasterimage* pimage;
oddbrasterimagedefptr pimgdef = pimage->imagedefid().safeopenobject();
odstring sfile = pimgdef->sourcefilename();
but
odgirasterimageptr pgiraster = pimgdef->image();
returns always null.
from odgirasterimageptr, i would like to get scanlines and so on.
why does pimgdef->image() returns always null?
thanks for your help,
woho
hi,
quote:
i do not use rasterimageproc (because it is never called and i do not know why, exrastermodule is includede)
it is never called because pimgdef->image() returns always null. and it returns null most likely because exrastermodule is not properly initialized in your application. please, look here:


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