在c#中应用byte[]效果
我有一个位图图像和一个字节[]。 byte[] 包含噪声等效果(在我的例子中,byte[] 包含自定义效果)。我想将此 byte[] 效果应用于位图图像并保存结果位图。
我有 BitmapData 和 byte[] 但我不知道如何将它们混合合并在一起?
谢谢
更新:
嗯,字节[]包含类似于布料纹理的效果(线程网等)。我有单色的平面位图图像,例如红色,蓝色,紫色......它可以是任何颜色。我想将此布料纹理应用于此平面位图,以便它可以生成看起来类似于特定颜色的布料的位图图像。
除了 byte[] 效果之外,我还可以使用任何其他方法来获得上述效果。
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
计算每个像素的中值怎么样?
您可以对每个像素分量(红色、绿色、蓝色)执行此操作。
what about calculating the median for each pixel?
you do this for every pixel component (red,green,blue).