查看单个帖子
旧 2009-05-05, 09:02 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】embeded raster and scaling

embeded raster and scaling
embeded raster and scaling
hi,
when i zoom out drawing with embeded raster, the raster gets darker. for example, dwg with embeded images that are attached.
regards,
michal sliwka
attached images
this takes place in wingdi device.
exgigdigeometry::rasterimageproc() contains optimization to use stretchblt() if possible.
the effect will go away if you comment out this optimization or override rasterimageproc() in your inheritor.
but without stretchblt it would work slower.
sergey slezkin
hi,
commenting out the code to call stretchblt() prevents the raster image from rendering. can you give me more details about what needs to be commented out so that image does not get so dark.
sijmen.

you should comment out optimization. condition "if( u.isparallelto(odgevector3d::kxaxis) && v.isparallelto(odgevector3d::kyaxis) )" should never get successful (you can comment out "if" condition, subsequent block and "else" keyword. or you can substitute "if" statement by "if(0)").
sincerely yours,
george udov
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)