Image Constructor (UInt32, UInt32, Byte[])

SFML.Net

Image Constructor (UInt32, UInt32, Byte)
Construct the image directly from an array of pixels

Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public Image(
	uint width,
	uint height,
	byte[] pixels
)
Public Sub New ( 
	width As UInteger,
	height As UInteger,
	pixels As Byte()
)
public:
Image(
	unsigned int width, 
	unsigned int height, 
	array<unsigned char>^ pixels
)
new : 
        width : uint32 * 
        height : uint32 * 
        pixels : byte[] -> Image

Parameters

width
Type: SystemUInt32
Image width
height
Type: SystemUInt32
Image height
pixels
Type: SystemByte
array containing the pixels
Exceptions
ExceptionCondition
LoadingFailedException
See Also