共用方式為


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

如果區域應該呈現不透明,truefalse,以可能的 Alpha 透明度呈現。 如果內容不透明,true 的值 可以提供效能優勢。

另請參閱

適用於