FreeImage.AcquireMemory Method

FreeImage.NET

FreeImageAcquireMemory Method
Provides a direct buffer access to a memory stream.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static bool AcquireMemory(
	FIMEMORY stream,
	ref IntPtr data,
	ref uint size_in_bytes
)

Parameters

stream
Type: FreeImageAPIFIMEMORY
The target memory stream.
data
Type: SystemIntPtr
Pointer to the data in memory.
size_in_bytes
Type: SystemUInt32
Size of the data in bytes.

Return Value

Type: Boolean
Returns true on success, false on failure.
See Also