Provides a direct buffer access to a memory stream.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public static bool AcquireMemory(
	FIMEMORY stream,
	ref IntPtr data,
	ref uint size_in_bytes
)
Visual Basic (Declaration)
Public Shared Function AcquireMemory ( _
	stream As FIMEMORY, _
	ByRef data As IntPtr, _
	ByRef size_in_bytes As UInteger _
) As Boolean
Visual C++
public:
static bool AcquireMemory(
	FIMEMORY stream, 
	IntPtr% data, 
	unsigned int% size_in_bytes
)

Parameters

stream
Type: FreeImageAPI..::.FIMEMORY
The target memory stream.
data
Type: System..::.IntPtr %
Pointer to the data in memory.
size_in_bytes
Type: System..::.UInt32 %
Size of the data in bytes.

Return Value

Returns true on success, false on failure.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also