积极答复者
GDI+透明问题?

问题
-
我想画一个苹果,想使其中间大部分是透明的,而边缘部分是不透明的,请问,如何实施!
- 已移动 Sheng Jiang 蒋晟Moderator 2009年8月24日 19:06 .Net类库问题 (发件人:Visual C#)
答案
-
你可以在Windows SDK文档或者codeproject, codeguru这样的开源社区中搜索"Alpha Blending GDI+"
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP- 已标记为答案 Riquel_DongModerator 2009年8月28日 5:27
全部回复
-
你可以在Windows SDK文档或者codeproject, codeguru这样的开源社区中搜索"Alpha Blending GDI+"
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP- 已标记为答案 Riquel_DongModerator 2009年8月28日 5:27
-
Public Class Form1 Private BkBmp As Bitmap Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If BkBmp IsNot Nothing Then BkBmp.Dispose() BkBmp = New Bitmap(100, 100) Using G As Graphics = Graphics.FromImage(BkBmp) Using Gp As New Drawing2D.GraphicsPath() Gp.AddPie(New Rectangle(0, 0, 100, 100), 0, 360) Using Pgp As New Drawing2D.PathGradientBrush(Gp) Pgp.CenterColor = Color.FromArgb(10, 255, 0, 0) Pgp.SurroundColors = New Color() {Color.Red} G.FillPath(Pgp, Gp) End Using End Using End Using Label1.Image = BkBmp End Sub End Class
虽然不是专业,努力学.