Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
BitmapData.draw函数使用哪些缩放函数来进行平滑和非平滑绘制?
(像clevrlib这样的库允许双线性和双三次采样,这表明 Flash 本身也不是这样做的。)
根据 Todd Yard 的 Foundation ActionScript 3.0 Image Effects(第 155 页)
“...smooth 参数决定了缩放后的图像是否在缩放时进行平滑处理。基本上,默认值 false 将对像素执行最近邻算法,这会导致可见像素化。一个值为真将导致应用双线性算法,该算法根据多个周围像素的平均值计算新的像素值。”