欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

vb.net-picturebox输出文本

程序员文章站 2022-04-29 09:52:50
...
   Dim mypic As PictureBox = mypics(myii, myjj)
                Dim myimage As Image = New Bitmap(32, 32)
                Dim g As Graphics = Graphics.FromImage(myimage)
                Dim mysf = New StringFormat()
                mysf.Alignment = StringAlignment.Center
                mysf.LineAlignment = StringAlignment.Center
                Do While True
                    myi += 1
                    Try
                        g.DrawString(myii, New Font(fontlist(myi - 1), 20), New SolidBrush(Color.Red), New PointF(16, 16), mysf)
                        Exit Do
                    Catch ex As Exception
                        Continue Do
                    End Try
                Loop
                mypic.Image = myimage

 

 
vb.net-picturebox输出文本
            
    
    博客分类: .net&silverlight  
 

  • vb.net-picturebox输出文本
            
    
    博客分类: .net&silverlight  
  • 大小: 19.2 KB