This function composite a transparent foreground image against a single background color or
against a background image.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public static FIBITMAP Composite( FIBITMAP fg, bool useFileBkg, RGBQUAD[] appBkColor, FIBITMAP bg ) |
Visual Basic (Declaration) |
---|
Public Shared Function Composite ( _ fg As FIBITMAP, _ useFileBkg As Boolean, _ appBkColor As RGBQUAD(), _ bg As FIBITMAP _ ) As FIBITMAP |
Visual C++ |
---|
public: static FIBITMAP Composite( FIBITMAP fg, bool useFileBkg, array<RGBQUAD>^ appBkColor, FIBITMAP bg ) |
Parameters
- fg
- Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
- useFileBkg
- Type: System..::.Boolean
When true the background of fg is used if it contains one.
- appBkColor
- Type: array<
FreeImageAPI..::.RGBQUAD
>[]()[]
The application background is used if useFileBkg is false and 'appBkColor' is not null.
- bg
- Type: FreeImageAPI..::.FIBITMAP
Image used as background when useFileBkg is false or fg has no background and appBkColor is null.