关于Controls.Add问题
vb2010吧
全部回复
仅看楼主
level 13
百百mp3 楼主
Dim hx, hy As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
For hy = 0 To 128
For hx = 0 To 198
Dim sf As New PictureBox
sf.Size = New Size(1, 1)
sf.BackColor = CType(PictureBox1.Image, Bitmap).GetPixel(hx, hy)
sf.Left = hx
sf.Top = hy
Panel1.Controls.Add(sf) '创建窗口句柄时出错。
Next
Next
End Sub
2012年02月25日 10点02分 1
level 13
百百mp3 楼主
我的Panel已经在Form中,不是声明的.
2012年02月25日 13点02分 3
level 13
百百mp3 楼主
如果有一个文件,内容如下:
255255255000000000
其实是每个像素的RGB数值,
"255255255000000000"含有两个像素,一个是白色(R:255,G:255,B:255),一个是黑色(R:000,G:000,B:000)
打印到窗体,要用这种方法
2012年02月25日 14点02分 4
level 13
百百mp3 楼主
怎么了?
2012年02月28日 15点02分 7
level 13
百百mp3 楼主
知道
2012年02月29日 13点02分 10
1