|
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.CommonAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax 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