Texture.Update Method (Byte[], UInt32, UInt32, UInt32, UInt32)

SFML.Net

TextureUpdate Method (Byte, UInt32, UInt32, UInt32, UInt32)
Update a texture 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 void Update(
	byte[] pixels,
	uint width,
	uint height,
	uint x,
	uint y
)
Public Sub Update ( 
	pixels As Byte(),
	width As UInteger,
	height As UInteger,
	x As UInteger,
	y As UInteger
)
public:
void Update(
	array<unsigned char>^ pixels, 
	unsigned int width, 
	unsigned int height, 
	unsigned int x, 
	unsigned int y
)
member Update : 
        pixels : byte[] * 
        width : uint32 * 
        height : uint32 * 
        x : uint32 * 
        y : uint32 -> unit 

Parameters

pixels
Type: SystemByte
Array of pixels to copy to the texture
width
Type: SystemUInt32
Width of the pixel region contained in pixels
height
Type: SystemUInt32
Height of the pixel region contained in pixels
x
Type: SystemUInt32
X offset in the texture where to copy the source pixels
y
Type: SystemUInt32
Y offset in the texture where to copy the source pixels
See Also