 |
GpuImageCopyDataFromImage(Byte, Int64, Int32, Boolean) Method |
Copies data from image (stored in GPU memory) to the specified byte array.
Returns true when data was copied, otherwise false is returned (when image cannot be copied from GPU memory).
Namespace: Ab4d.SharpEngine.CoreAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic bool CopyDataFromImage(
byte[] data,
long offset = 0,
int size = -1,
bool leaveMemoryMapped = false
)
Parameters
- data Byte
- byte array
- offset Int64 (Optional)
- offset (0 by default)
- size Int32 (Optional)
- size (when default -1 is used, then the byte size of this image is used)
- leaveMemoryMapped Boolean (Optional)
- leaveMemoryMapped (false by default)
Return Value
Booleantrue when data was copied, otherwise false is returned (when image cannot be copied from GPU memory)
Exceptions
See Also