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: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
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
ExceptionCondition
ArgumentNullException
ArgumentException
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Core.GpuImage.CopyDataFromImage(System.Byte[],System.Int64,System.Int32,System.Boolean)"]

See Also