标题:兄弟们帮我啊
只看楼主
Viking
Rank: 1
等 级:新手上路
帖 子:80
专家分:0
注 册:2004-11-5
 问题点数:0 回复次数:1 
兄弟们帮我啊

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim g1 As Graphics Dim g2 As Graphics g1 = Me.CreateGraphics Dim imagepath As String imagepath = "d:\picture\" Dim backimage As Image backimage = New Bitmap(imagepath & "star.Gif") g1.DrawImage(backimage, 0, 0) Dim textureimage As Image = New Bitmap(imagepath & "star.jpg") Dim shadowbrush As Brush = New TextureBrush(textureimage) Dim texturebrush = New SolidBrush(Color.Black) Dim lineargradbrush As Brush Dim fntfont As Font fntfont = New Font("黑体", 20, FontStyle.Italic Or FontStyle.Underline) g1.DrawString("您好,GDI+!", fntfont, shadowbrush, 1, 31) g1.DrawString("您好,GDI+!", fntfont, texturebrush, 0, 30) Dim p As Pen = New Pen(Color.Red, 5) g1.SmoothingMode = Drawing2D.SmoothingMode.AntiAlias g1.DrawEllipse(p, 0, 180, 150, 55) Dim graphicstate As Graphics Dim i As Integer For i = 1 To 10 Dim newpen As New Pen(Color.FromArgb(i * 25, Color.Red), 5) g1.DrawRectangle(newpen, 150 + i * 5, 130 + i * 5, 80, 80) Next fntfont.Dispose() shadowbrush.Dispose() texturebrush.GetType() backimage.Dispose() g1.Dispose() End Sub 运行怎么什么都没有啊?调试没有问题啊

搜索更多相关主题的帖子: 兄弟 
2004-11-15 23:12
Viking
Rank: 1
等 级:新手上路
帖 子:80
专家分:0
注 册:2004-11-5
得分:0 
问题已解决

┏━━━ミ━━┓ ┃     |||┃ ┃━━ ﹏ ━━┃ ┗━━━━━━┛ ~洋葱头~~小辫辫~ ~血可流!头可断~! ~偶滴发型不能乱~
2004-11-16 23:19



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-7709-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.054200 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved