开发者

Apply byte[] effect in c#

I have a bitmap image and a byte[]. The byte[] contains an effect such as noise (in my case, byte[] contains custom effect). I want to apply this byte[] effect to the bitmap image and save the resulted bitmap.

I have the BitmapData and byte[] but I don't know how to mix merge these together?

Thanks

Update:

Well the byte[] contains the effect similar to cloths texture (net of threads, etc etc). I have the plane bitmap image of single color such 开发者_运维知识库as red, blue, violet... it may be of any color. I want to apply this cloth texture to this plane bitmap so that it can produce a bitmap image which looks like similar to cloth of the specific color.

I could also use any other method to get the above effect other than byte[] effect.

Thanks


what about calculating the median for each pixel?

byte median = (int)(origignalpixel + noisepixel)/2;

you do this for every pixel component (red,green,blue).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜