具有不透明度的涂抹工具
我一直在尝试为我正在开发的图像编辑应用程序创建一个涂抹工具。我在网络上找到了各种用于涂抹算法的资源,但它们都没有考虑使用透明背景。
我无法“拾取并粘贴”背景样本,因为渲染它不会将透明度弄脏到颜色中,就像您在 GIMP 和 Photoshop 中的涂抹工具中看到的那样。
如何同时涂抹透明度和颜色?
I've been trying to create a smudge tool for an image editing application I've been developing. I've found various resources around the web for smudge algorithms, but none of them take into account using a transparent background.
I can't "pick up and paste" a sample of the background because rendering it wouldn't smudge the transparency into the color, as you'd find on smudge tools in GIMP and Photoshop.
How can I smudge both transparency and color?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来我正在寻找的答案是将每个单独的通道涂抹为单独的图像(或者至少分别涂抹 RGB 和 A 通道)。但是,我似乎找不到在 Android 中编辑位图通道的方法。
我为此问了一个单独的问题:
Android 编辑位图通道
It seems the answer that I'm looking for is to smudge each individual channel as a separate image (or at least the RGB and A channels separately). However, I can't seem to find a way to edit the channels of a Bitmap in Android.
I asked a separate question for that:
Android Edit Bitmap Channels