渲染位图并编辑像素颜色 [英] render a bitmap and edit the pixel colors
本文介绍了渲染位图并编辑像素颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个带有xcode的新Mac,但是如果需要的话,我愿意切换到不同的编译器/其他什么来使这更容易。
我想要一个程序显示一个像素网格(所有白色背景开始都很好),将用户输入(空格键,鼠标单击)作为更新的触发器,然后允许我根据数学更改单个像素的颜色的例程我这样做。
最简单的方法是什么?是否有(关闭)模板?
I'm working on a new mac with xcode but willing to switch to different compiler/whatever to make this easier if needed.
I want a program that displays a grid of pixels (all white background to start is fine), takes a user input (space bar, mouse click) as a trigger to "update" and then a routine that allows me to change the color of individual pixels based on math I do.
What is the easiest way to do this? Are there (close) templates available?
推荐答案
这篇关于渲染位图并编辑像素颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文