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

yang686526 2009-05-05 09:02 AM

【转帖】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


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