SoftwareBitmap 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SoftwareBitmap(BitmapPixelFormat, Int32, Int32) |
初始化 SoftwareBitmap 类的新实例。 |
SoftwareBitmap(BitmapPixelFormat, Int32, Int32, BitmapAlphaMode) |
初始化 SoftwareBitmap 类的新实例。 |
SoftwareBitmap(BitmapPixelFormat, Int32, Int32)
初始化 SoftwareBitmap 类的新实例。
public:
SoftwareBitmap(BitmapPixelFormat format, int width, int height);
SoftwareBitmap(BitmapPixelFormat const& format, int const& width, int const& height);
public SoftwareBitmap(BitmapPixelFormat format, int width, int height);
function SoftwareBitmap(format, width, height)
Public Sub New (format As BitmapPixelFormat, width As Integer, height As Integer)
参数
- format
- BitmapPixelFormat
新软件位图的像素格式。
- width
-
Int32
int
新软件位图的宽度(以像素为单位)。
- height
-
Int32
int
新软件位图的高度(以像素为单位)。
另请参阅
适用于
SoftwareBitmap(BitmapPixelFormat, Int32, Int32, BitmapAlphaMode)
初始化 SoftwareBitmap 类的新实例。
public:
SoftwareBitmap(BitmapPixelFormat format, int width, int height, BitmapAlphaMode alpha);
SoftwareBitmap(BitmapPixelFormat const& format, int const& width, int const& height, BitmapAlphaMode const& alpha);
public SoftwareBitmap(BitmapPixelFormat format, int width, int height, BitmapAlphaMode alpha);
function SoftwareBitmap(format, width, height, alpha)
Public Sub New (format As BitmapPixelFormat, width As Integer, height As Integer, alpha As BitmapAlphaMode)
参数
- format
- BitmapPixelFormat
新软件位图的像素格式。
- width
-
Int32
int
新软件位图的宽度(以像素为单位)。
- height
-
Int32
int
新软件位图的高度(以像素为单位)。
- alpha
- BitmapAlphaMode
新软件位图的 alpha 模式。
另请参阅
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈