 |
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: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntaxpublic 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