{$DEFINE BGRABITMAP}
{ You can define the following compiler directives in the package options,
  in tab Compiler options, in section Other. Directives must be prefixed with
  "-d". So for example:

  - to always have RGBA pixel format, write "-dBGRABITMAP_RGBAPIXEL"
  - to always have BGRA pixel format, write "-dBGRABITMAP_BGRAPIXEL"
  - to use fpGUI toolkit, write "-dBGRABITMAP_USE_FPGUI" }
{$IFNDEF BGRABITMAP_DONT_USE_LCL}
  {$IFDEF LCL}
    {$DEFINE BGRABITMAP_USE_LCL}
  {$ENDIF}
{$ENDIF}
{$IFDEF BGRABITMAP_USE_FPGUI}
  {$UNDEF BGRABITMAP_USE_LCL}
  {$DEFINE TCOLOR_BLUE_IN_LOW_BYTE}
{$ENDIF}
{$IFDEF BGRABITMAP_USE_MSEGUI}
  {$UNDEF BGRABITMAP_USE_LCL}
  {$DEFINE TCOLOR_BLUE_IN_LOW_BYTE}
  {$DEFINE BGRABITMAP_DONT_USE_FPCANVAS}
{$ENDIF}
{$IFNDEF BGRABITMAP_DONT_USE_FPCANVAS}
  {$DEFINE BGRABITMAP_USE_FPCANVAS}
{$ENDIF}

{$MODESWITCH ADVANCEDRECORDS}
{$MODESWITCH TypeHelpers}

{$IFNDEF BGRABITMAP_DONT_USE_LAZFREETYPE}
  {$IFNDEF BGRABITMAP_CORE}
    {$DEFINE BGRABITMAP_USE_LAZFREETYPE}
  {$ENDIF}
{$ENDIF}

{$IF NOT defined(BGRABITMAP_CORE) and NOT defined(BGRABITMAP_NO_EXTENDED_COLORSPACE)}
  {$DEFINE BGRABITMAP_EXTENDED_COLORSPACE}
{$ENDIF}
