Click or drag to resize
Ab4d.SharpEngine logo

RawImageDataResize Method

Creates a new Data array with new dataLength and updates the Width, Height and Stride properties (Format value is preserved).

Namespace: Ab4d.SharpEngine.Common
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public void Resize(
	int width,
	int height,
	int stride,
	int dataLength,
	bool alwaysRecreateDataArray = false
)

Parameters

width  Int32
new width
height  Int32
new height
stride  Int32
new stride
dataLength  Int32
new length of the Data byte array
alwaysRecreateDataArray  Boolean  (Optional)
when false (by default) then the existing Data array is preserved if its size is bigger or equal to dataLength. When true then new Data array is always created.
See Also