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

yang686526 2009-05-04 04:54 PM

【转帖】bmp of 32bit color
 
bmp of 32bit color
bmp of 32bit color
hi.
i use dd 2.4.1.
attached dwg in which rasterimage was inserted.
odamfcapp becomes oda_fail() for vectorize.
bmp is 32bit color.
isn't there something evasion method?
exgirasterimage.cpp
code:
odgirasterimage::pixelformatinfo odexgirasterimage::pixelformat() const
{
odgirasterimage::pixelformatinfo res;
if(numcolors())
res.setbgra(); // palette is bgra in bmp
else
{
if(m_header.m_bitperpixel == 24)
res.setbgr();
else if(m_header.m_bitperpixel == 16)
res.set16bitbgr();
else
{
oda_fail(); // !!!!!!!!!!!!!
}
}
return res;
}
thanks.
attached images
unfortunately where is no workaround if you have no dd sources.
the fix (to support 32-bit bmp) envolves not only exservices\exgirasterimage.cpp but source\rp\rasterprocessor.cpp
it will be available in next release/update
sergey slezkin
i wait for the next release.
thank you.


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