UserInteractionServices.MakeIconTransparent 方法
使用 TransparentColor 属性的值使所提供的图标变为透明。
命名空间: Microsoft.Data.Schema
程序集: Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)
语法
声明
Protected Function MakeIconTransparent ( _
icon As Bitmap _
) As Bitmap
protected Bitmap MakeIconTransparent(
Bitmap icon
)
protected:
Bitmap^ MakeIconTransparent(
Bitmap^ icon
)
member MakeIconTransparent :
icon:Bitmap -> Bitmap
protected function MakeIconTransparent(
icon : Bitmap
) : Bitmap
参数
- icon
类型:System.Drawing.Bitmap
要使之变为透明的 Bitmap。
返回值
类型:System.Drawing.Bitmap
透明图标。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。