Visual Basic.net RGB、透明度和定位像素
我正在制作一个图像修改程序,想知道如何(在找到 .png、.gif、.bmp 等之后)我可以识别某个像素的属性(RGB 和透明度),如何更改像素的颜色(类似于第一部分)以及如何告诉程序“移动到下一个像素,除非您位于图像的末尾,在这种情况下;向下移动一行并继续” 请帮忙。
此外,它是一个将灰度图像(黑色、白色和灰色)转换为黑色、半透明黑色和透明图像的程序。以防万一有帮助。 非常感谢谁能给我代码 US3R5
I am making an image modifying program and would like to know how (after I have located the .png, .gif, .bmp etc) I can identify the properties of a certain pixel (RGB and the amount of transparency), how to change the colour of a pixel (similar to first part) and how to tell the program to "move along to the next pixel, unless you are at the end of the image, in which case; move down a row and continue" please help.
Also, it is a program which converts a greyscale image (black, white and grey) to black, semi-transparent black and transparency). Just in case that helps.
Thanks a lot to whoever can give me the code,
US3R5
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该从文件创建一个 Bitmap 对象,例如使用:
然后您可以像这样迭代像素:
You should create a Bitmap object from your file, for example using:
Then you can iterate over the pixels like this: