BitmapContent Constructor (Int32, Int32)
Note
This constructor is available only when developing for Windows.
Initializes a new instance of BitmapContent with the specified width or height.
Syntax
'Declaration
Protected Sub New ( _
width As Integer, _
height As Integer _
)
protected BitmapContent (
int width,
int height
)
protected:
BitmapContent(
int width,
int height
)
Parameters
- width
Type: Int32
Width, in pixels, of the bitmap resource. - height
Type: Int32
Height, in pixels, of the bitmap resource.
Requirements
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
See Also
Reference
BitmapContent Class
BitmapContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace
Platforms
Windows 7, Windows Vista, Windows XP