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, ref RGBQUAD appBkColor, FIBITMAP bg ) |
Visual Basic (Declaration) |
---|
Public Shared Function Composite ( _ fg As FIBITMAP, _ useFileBkg As Boolean, _ ByRef appBkColor As RGBQUAD, _ bg As FIBITMAP _ ) As FIBITMAP |
Visual C++ |
---|
public: static FIBITMAP Composite( FIBITMAP fg, bool useFileBkg, 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:
FreeImageAPI..::.RGBQUAD
%
The application background is used if useFileBkg is false.
- bg
- Type: FreeImageAPI..::.FIBITMAP
Image used as background when useFileBkg is false or fg has no background and appBkColor is null.