1,451
社区成员
发帖
与我相关
我的任务
分享
Option Explicit
Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, _
ByVal x As Long, ByVal y As Long, _
ByVal nWidth As Long, ByVal nHeight As Long, _
ByVal hSrcDC As Long, _
ByVal xSrc As Long, _
ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Sub Command1_Click()
BitBlt Picture2.hDC, 0, 0, 500, 96, Picture1.hDC, 0, 0, vbSrcCopy
SavePicture Picture2.Image, "E:\Temp\aaa.bmp"
End Sub
Private Sub Form_Load()
BarCodeCtrl1.Style = 6
BarCodeCtrl1.Value = "2017042802030005"
Picture2.AutoRedraw = True ' 重点是这句 !
End Sub