c# - .net "Canvas" control -
i'm trying (for educational purposes) create image format, in order display i'd able setpixel on control draw pixel in display area. how can this?
the appropriate class bitmap can draw stright on form via graphics class. here example:
private void form1_paint(object sender, painteventargs e) { bitmap bmp = new bitmap(640, 480); bmp.setpixel(10, 12, color.green); e.graphics.drawimage(bmp, new point(0, 0)); }
Comments
Post a Comment