Private Sub Command1_Click() Picture1.Print "ÑÝʾ" End SubPrivate Sub Command2_Click() Dim i As Integer Dim j As Integer
Debug.Print Picture1.Point(1, 1)
For i = 1 To Picture1.Height For j = 1 To Picture1.Width If Picture1.Point(i, j) <> 13160660 Then Picture2.PSet (i, j) End If DoEvents Next j Next i End SubPrivate Sub Form_Load() Picture2.Width = Picture1.Width Picture2.Height = Picture1.Height End Sub
Private Sub Command1_Click() Picture1.Print "字" End SubPrivate Sub Command2_Click() Dim i As Integer Dim j As Integer
Debug.Print Picture1.Point(1, 1)
For i = 1 To Picture1.Height For j = 1 To Picture1.Width If Picture1.Point(j, i) <> 13160660 Then Picture2.PSet (j, i) End If DoEvents Next j Next i End SubPrivate Sub Form_Load() Picture2.Width = Picture1.Width Picture2.Height = Picture1.Height End Sub
热心的你。
我的意思是我要提取一些汉字与图形的点阵。作为液晶显示用。
因为液晶是描点用。
谢谢!
如果POINT不行可以尝试用GetPixel函数啊!
getpixel 无法定位。我试过。俺API不行。拜托老兄帮我一把
谢谢!
在线!
同行,我用VB做过这种程序.
到这里去下吧!
ftp://ic21:[email protected]/
兄弟:我无法打开连接,你 给我EMAI一个,谢谢!
xiexie!
ScaleMode设成3即可,我用该方法处理过不带字库的LED
字模问题
email [email protected]
Picture1.Print "ÑÝʾ"
End SubPrivate Sub Command2_Click()
Dim i As Integer
Dim j As Integer
Debug.Print Picture1.Point(1, 1)
For i = 1 To Picture1.Height
For j = 1 To Picture1.Width
If Picture1.Point(i, j) <> 13160660 Then
Picture2.PSet (i, j)
End If
DoEvents
Next j
Next i
End SubPrivate Sub Form_Load()
Picture2.Width = Picture1.Width
Picture2.Height = Picture1.Height
End Sub
Picture1.Print "字"
End SubPrivate Sub Command2_Click()
Dim i As Integer
Dim j As Integer
Debug.Print Picture1.Point(1, 1)
For i = 1 To Picture1.Height
For j = 1 To Picture1.Width
If Picture1.Point(j, i) <> 13160660 Then
Picture2.PSet (j, i)
End If
DoEvents
Next j
Next i
End SubPrivate Sub Form_Load()
Picture2.Width = Picture1.Width
Picture2.Height = Picture1.Height
End Sub