Click or drag to resize
Ab4d.SharpEngine logo

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.Core
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public 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

Boolean
true when data was copied, otherwise false is returned (when image cannot be copied from GPU memory)
Exceptions
See Also