Public Function BmpXTslh() 'As Image
Dim Pic As StdPicture
Dim i, j, x As Long, hDC As Long
Dim Bmp As BITMAP, BmpInfo As BITMAPINFO
Dim PicData() As Byte
Dim W, H As Long
Set Pic = Activer_PicForm.PicBox1.Picture
GetGDIObject Pic.Handle, Len(Bmp), Bmp
ReDim PicData(0 To Bmp.bmHeight * Bmp.bmWidth - 1) '按图像数据实际的大小分配缓冲区
GetBitmapBits Pic, UBound(PicData), PicData(0)
W = Bmp.bmWidth '宽
H = Bmp.bmHeight '高
MsgBox W & " " & H
Beforethin PicData(0), W, H, True
ThinnerHilditch PicData(0), W, H
Beforethin PicData(0), W, H, False
'-------------
SetBitmapBits Pic, UBound(PicData), PicData(0)
With Activer_PicForm.PicBox1
Set .Picture = Pic
.Refresh
End With
SavePicture Pic, "c:/2.bmp"
MsgBox True
End Function
/////////////////////////////////////////////////////////////////////////////////////
PicData 中连续修改一行时,怎么有间断?行不连续