[转] alpha 图像混合算法 for RGB565l
摘要:
http://realchecko.blogspot.com/2009/01/alpha-blend-for-rgb565.html把 rgb565 轉到 32 bit (但是 order 不是 RGB),然後作 32 bit 的 X alpha 運算。這樣,就只要作一次乘法。rgb565 轉到 32 bit 的方法也很聰明,就是把 中間的 G 移出來到 high 16 bit 中:unsigned int x = rgb565;x = (x | (x <<16)) & 0x07E0F81F;算好後,轉回來的方法:unsigned short rgb565;rgb565 = 阅读全文
posted @ 2011-07-23 22:56 我是谁啊 阅读(422) 评论(0) 推荐(0)
浙公网安备 33010602011771号