FreeImage.ReadMemory Method

FreeImage.NET

FreeImageReadMemory Method
Reads data from a memory stream.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static uint ReadMemory(
	byte[] buffer,
	uint size,
	uint count,
	FIMEMORY stream
)

Parameters

buffer
Type: SystemByte
The buffer to store the data in.
size
Type: SystemUInt32
Size in bytes of the items.
count
Type: SystemUInt32
Number of items to read.
stream
Type: FreeImageAPIFIMEMORY
The stream to read from. The memory pointer associated with stream is increased by the number of bytes actually read.

Return Value

Type: UInt32
The number of full items actually read. May be less than count on error or stream-end.
See Also