SurfaceImageSource Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SurfaceImageSource(Int32, Int32) |
Initializes a new instance of the SurfaceImageSource class, specifying the size of the drawing area. |
SurfaceImageSource(Int32, Int32, Boolean) |
Initializes a new instance of the SurfaceImageSource class, specifying the size of the drawing area, and whether opacity is expected to be always full opacity. Use this with |
SurfaceImageSource(Int32, Int32)
Initializes a new instance of the SurfaceImageSource class, specifying the size of the drawing area.
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)
Parameters
- pixelWidth
-
Int32
int
Width of the drawing area in pixels.
- pixelHeight
-
Int32
int
Height of the drawing area in pixels.
See also
Applies to
SurfaceImageSource(Int32, Int32, Boolean)
Initializes a new instance of the SurfaceImageSource class, specifying the size of the drawing area, and whether opacity is expected to be always full opacity. Use this with isOpaque=true
if SurfaceImageSource should not support transparency; this can increase performance.
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)
Parameters
- pixelWidth
-
Int32
int
Width of the drawing area in pixels.
- pixelHeight
-
Int32
int
Height of the drawing area in pixels.
- isOpaque
-
Boolean
bool
true if the area should render opaque. false to render with possible alpha transparency. A value of true can provide a performance benefit if the content is not transparent.