FreeImage.NET Class Library Reference
FreeImageGetFormatParameters Method |
Retrieves all parameters needed to create a new FreeImage bitmap from
the format of a .NET Image.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static bool GetFormatParameters( PixelFormat format, out FREE_IMAGE_TYPE type, out uint bpp, out uint red_mask, out uint green_mask, out uint blue_mask )
Parameters
- format
- Type: System.Drawing.ImagingPixelFormat
The PixelFormat of the .NET Image. - type
- Type: FreeImageAPIFREE_IMAGE_TYPE
Returns the type used for the new bitmap. - bpp
- Type: SystemUInt32
Returns the color depth for the new bitmap. - red_mask
- Type: SystemUInt32
Returns the red_mask for the new bitmap. - green_mask
- Type: SystemUInt32
Returns the green_mask for the new bitmap. - blue_mask
- Type: SystemUInt32
Returns the blue_mask for the new bitmap.
Return Value
Type: BooleanTrue in case a matching conversion exists; else false.
See Also