可以說,我想創建一個寬度和高度64和圖像的所有像素設置爲黑色VB.NET繪製圖像(組像素)
dim b as bitmap
b.width = 64
b.height = 64
for y = 0 to 64
for x = 0 to 64
b.setpixel(x,y ,color.black)
next
next
dim p as new panel
p.width = b.width
p.hieght = b.height
p.backgroundimage(b)
代碼不工作
如何它可能工作?它甚至沒有編譯。 –
你的寬度和高度是64,但你的循環有65次迭代 – Jesse