Retrieves all parameters needed to create a new FreeImage bitmap from raw bits Image.

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

Syntax

C#
public static bool GetTypeParameters(
	FREE_IMAGE_TYPE type,
	int bpp,
	out uint red_mask,
	out uint green_mask,
	out uint blue_mask
)
Visual Basic (Declaration)
Public Shared Function GetTypeParameters ( _
	type As FREE_IMAGE_TYPE, _
	bpp As Integer, _
	<OutAttribute> ByRef red_mask As UInteger, _
	<OutAttribute> ByRef green_mask As UInteger, _
	<OutAttribute> ByRef blue_mask As UInteger _
) As Boolean
Visual C++
public:
static bool GetTypeParameters(
	FREE_IMAGE_TYPE type, 
	int bpp, 
	[OutAttribute] unsigned int% red_mask, 
	[OutAttribute] unsigned int% green_mask, 
	[OutAttribute] unsigned int% blue_mask
)

Parameters

type
Type: FreeImageAPI..::.FREE_IMAGE_TYPE
The FREE_IMAGE_TYPE of the data in memory.
bpp
Type: System..::.Int32
The color depth for the data.
red_mask
Type: System..::.UInt32 %
Returns the red_mask for the data.
green_mask
Type: System..::.UInt32 %
Returns the green_mask for the data.
blue_mask
Type: System..::.UInt32 %
Returns the blue_mask for the data.

Return Value

True in case a matching conversion exists; else false.

Version Information

FreeImage.NET

Supported in: 3.12.0, 3.13.0, 3.13.1

See Also