.net transparent bitmap

today,l learned have to get transparent bitmap in .Net.
It is very convenient and softly.

as below:
Dim pBmp As System.Drawing.Bitmap = System.Drawing.Image.FromHbitmap(pCmd.Bitmap)
pBmp.MakeTransparent(pBmp.GetPixel(0, 0))
pBtn.Image = pBmp

note:
pCmd is ESRI.SytemUI.ICommand
pBtn is System.Windows.Forms.Button

posted on 2006-07-26 18:33 简单就是美 阅读(85) 评论(0)  编辑  收藏 所属分类: DotNet开发

导航

统计

常用链接

随笔分类(95)

随笔档案(91)

新闻分类(6)

新闻档案(15)

积分与排名

最新评论

阅读排行榜