 |
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: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
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