Java:基本绘图,绘制点/点/像素

我需要有一个面板,我可以在其中绘制.我希望能够逐像素地绘制.

ps:我不需要其他基元的行/圆.
pps:图形库并不重要,它可以是awt,swing,qt ……任何东西.我只想要一些通常由Bufferedimage表示的东西,或者像你设置单个像素颜色然后将其渲染到屏幕上的东西.

解决方法:

represented by Bufferedimage ..

我建议使用BufferedImage,显示..

..or something like that where you set colors of single pixels and then render it to the screen.

..在JLabel中 – 见于this answer.

当然,一旦我们有BufferedImage的实例,我们就可以setRGB(..)了.

上一篇:c# – Pixel by Pixel Color Conversion WriteableBitmap => PNG仅黑色到具有透明度的颜色


下一篇:python爬虫20 | 小帅b教你如何使用python识别图片验证码