93°作者
17年6个月前IP:未同步
133267
16楼
送上测试代码

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim binary_frame As New Binary.CSunsafe
        binary_frame.BMP_Init(PictureBox1.Image)
        pic = binary_frame.Binary_L(0.6)

        debug(pic, 50, 85)

    End Sub

    Public Function debug(ByVal pic(,) As Integer, ByVal width As Integer, ByVal height As Integer)
        Dim bmp As New Bitmap(width + 1, height + 1)
        Dim i, j As Integer
        For i = 0 To width
            For j = 0 To height
                If pic(i, j) = 1 Then
                    bmp.SetPixel(i, j, Color.Black)
                End If
            Next
        Next
        Dim frm As New Form
        frm.BackgroundImage = bmp
        frm.BackgroundImageLayout = ImageLayout.Center
        frm.Show()
        Return Nothing
    End Function
评论
文号 / 133267

万流景仰
名片发私信
学术分 30
总主题 651 帖总回复 6037 楼拥有证书:学者 笔友
注册于 2007/04/10 19:15:00最后登录 2018/01/10 01:07:34
主体类型:个人
所属领域:无
认证方式:邮箱
IP归属地:0

个人简介

暂未填写
笔记
{{note.content}}
{{n.user.username}}
{{fromNow(n.toc)}} {{n.status === noteStatus.disabled ? "已屏蔽" : ""}} {{n.status === noteStatus.unknown ? "正在审核" : ""}} {{n.status === noteStatus.deleted ? '已删除' : ''}}
  • 编辑
  • 删除
  • {{n.status === 'disabled' ? "解除屏蔽" : "屏蔽" }}
我也是有底线的