Share via


SurfaceImageSource 构造函数

定义

重载

SurfaceImageSource(Int32, Int32)

初始化 SurfaceImageSource 类的新实例,指定绘图区域的大小。

SurfaceImageSource(Int32, Int32, Boolean)

初始化 SurfaceImageSource 类的新实例,指定绘图区域的大小,以及不透明度是否应始终为完全不透明度。 如果 SurfaceImageSource 不应支持透明度,则将此与 结合使用isOpaque=true;这可以提高性能。

SurfaceImageSource(Int32, Int32)

初始化 SurfaceImageSource 类的新实例,指定绘图区域的大小。

public:
 SurfaceImageSource(int pixelWidth, int pixelHeight);
 SurfaceImageSource(int const& pixelWidth, int const& pixelHeight);
public SurfaceImageSource(int pixelWidth, int pixelHeight);
function SurfaceImageSource(pixelWidth, pixelHeight)
Public Sub New (pixelWidth As Integer, pixelHeight As Integer)

参数

pixelWidth
Int32

int

绘图区域的宽度(以像素为单位)。

pixelHeight
Int32

int

绘图区域的高度(以像素为单位)。

另请参阅

适用于

SurfaceImageSource(Int32, Int32, Boolean)

初始化 SurfaceImageSource 类的新实例,指定绘图区域的大小,以及不透明度是否应始终为完全不透明度。 如果 SurfaceImageSource 不应支持透明度,则将此与 结合使用isOpaque=true;这可以提高性能。

public:
 SurfaceImageSource(int pixelWidth, int pixelHeight, bool isOpaque);
 SurfaceImageSource(int const& pixelWidth, int const& pixelHeight, bool const& isOpaque);
public SurfaceImageSource(int pixelWidth, int pixelHeight, bool isOpaque);
function SurfaceImageSource(pixelWidth, pixelHeight, isOpaque)
Public Sub New (pixelWidth As Integer, pixelHeight As Integer, isOpaque As Boolean)

参数

pixelWidth
Int32

int

绘图区域的宽度(以像素为单位)。

pixelHeight
Int32

int

绘图区域的高度(以像素为单位)。

isOpaque
Boolean

bool

如果区域应呈现不透明,则为 true如果为 false ,则以可能的 alpha 透明度呈现。 如果内容不透明,值为 true 可提供性能优势。

另请参阅

适用于