查看单个帖子
旧 2009-05-04, 04:54 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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:ixelformatinfo odexgirasterimage:ixelformat() const
{
odgirasterimage:ixelformatinfo 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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)