请教各位:现有个控件其中一个属性为IntPtr类型,
/// <summary>
/// Gets or sets the current native icon handle
/// </summary>
public IntPtr IconHandle
{
get
{
return mIcon;
}
set
{
mIcon = value;
}
}
如何将一个图像类型转换为IntPtr 类型的? 即该属性如何赋值?谢谢!
...全文
7661打赏收藏
Image与IntPtr的转换
请教各位:现有个控件其中一个属性为IntPtr类型, /// /// Gets or sets the current native icon handle /// public IntPtr IconHandle { get { return mIcon; } set { mIcon = value; } } 如何将一个图像类型转换为IntPtr 类型的? 即该属性如何赋值?谢谢!