GDI+中这个重载函数可以实现
Graphics.DrawImage ( _
image As Image, _
destRect As Rectangle, _
srcX 作为整数,_
srcY 作为整数,_
srcWidth 作为整数,_
srcHeight 作为整数,_
< p> srcUnit As GraphicsUnit, _imageAttr As ImageAttributes _
)
ImageAttributes 有一个成员方法.SetColorKey(Color, Color) ,可以设置透明色 范围.如果你要做透明度也可以修改其他属性。比如使用颜色替换,背景颜色替换成半透明颜色