AS3:How to change a colored Bitmap's BitmapData to black and white?

前端 未结 7 910
一整个雨季
一整个雨季 2020-12-14 13:35

How can I change the bitmapdata of a coloured Bitmap to Black and White in AS3 ? I\'m developing a simple image editor tool for a CMS in f

7条回答
  •  执笔经年
    2020-12-14 14:01

    Thank you for the approach, I created a small tool, that lets you play around with the values: http://bjornson.inhb.de/?p=159

    The initial values are the ones proposed by macke: 30%, 59% and 11% for rgb.

    You can also load external images and try out for the best result for your images.

提交回复
热议问题