| 1 |
// While "storage" is still technically experimental, |
| 2 |
// it does allow file system storage of layered objects etc |
| 3 |
// Comment out the following preprocessor define if you do wish to |
| 4 |
// use storage (eg to compile the experimental 'CtrlDemo' in Examples). |
| 5 |
{$DEFINE NO_STORAGE} |
| 6 |
|
| 7 |
// default rotation direction is clockwise with positive angles |
| 8 |
{.$DEFINE CLOCKWISE_ROTATION_WITH_NEGATIVE_ANGLES} |
| 9 |
|
| 10 |
// Image downsampling occurs when images are reduced in size, and the default downsampling |
| 11 |
// function is 'BoxDownSampling'. When downsampling, this function generally produces much |
| 12 |
// clearer images than general purpose resamplers (which are much better at upsampling, |
| 13 |
// and doing other affine transformations). However, if for some reason you do wish to use |
| 14 |
// a general purpose resampler while downsampling, then comment out (ie disable) this define. |
| 15 |
{$DEFINE USE_DOWNSAMPLER_AUTOMATICALLY} |
| 16 |
|
| 17 |
// The SimplifyPath and SimplifyPaths functions have changed. Specifically the last |
| 18 |
// parameter has changed from IsOpenPath to IsClosedPath, though the default has also |
| 19 |
// changed from false to true which should minimise any inconvenience. This change was |
| 20 |
// made to remove an inconsistency with other functions that all contain an IsClosedPath |
| 21 |
// parameter. However, if this change is going to create havoc for some reason, then |
| 22 |
// the following (somewhat temporary) define can be enabled. |
| 23 |
{.$DEFINE USE_OLD_SIMPLIFYPATHS} |
| 24 |
|
| 25 |
//USING_VCL_LCL - using either Delphi Visual Component Library or Lazarus Component Library |
| 26 |
//is required if using the TImage32Panel component |
| 27 |
//and adds a few extra library features (eg copying to and from TBitmap objects) |
| 28 |
{$IF DEFINED(FPC)} |
| 29 |
{$MACRO ON} |
| 30 |
{$DEFINE USING_LCL} |
| 31 |
{.$DEFINE USING_VCL_LCL} |
| 32 |
{$DEFINE COMPILERVERSION:= 17} |
| 33 |
{$ELSEIF declared(FireMonkeyVersion) OR DEFINED(FRAMEWORK_FMX)} |
| 34 |
{$DEFINE USING_FMX} |
| 35 |
{$ELSE} |
| 36 |
{$DEFINE USING_VCL} |
| 37 |
{$DEFINE USING_VCL_LCL} |
| 38 |
{$IFEND} |
| 39 |
|
| 40 |
{$IFDEF FPC} |
| 41 |
{$MODE DELPHI} |
| 42 |
{$DEFINE ABSTRACT_CLASSES} |
| 43 |
{$DEFINE RECORD_METHODS} |
| 44 |
{$DEFINE PBYTE} |
| 45 |
{$DEFINE NEWPOSFUNC} |
| 46 |
{$DEFINE SUPPORTS_POINTERMATH} |
| 47 |
{$DEFINE CLASS_STATIC} |
| 48 |
{.$DEFINE UITYPES} |
| 49 |
{$DEFINE NESTED_TYPES} |
| 50 |
{$IFNDEF DEBUG} |
| 51 |
{$DEFINE INLINE} |
| 52 |
{$DEFINE INLINE_COMPATIBLE} |
| 53 |
{$ENDIF} |
| 54 |
{$DEFINE DELPHI_PNG} |
| 55 |
{$IFDEF WINDOWS} |
| 56 |
{$DEFINE MSWINDOWS} |
| 57 |
{$ENDIF} |
| 58 |
{$ELSE} |
| 59 |
{$IF COMPILERVERSION < 15} |
| 60 |
Your version of Delphi is not supported (Image32 requires Delphi version 7 or above) |
| 61 |
{$IFEND} |
| 62 |
{$IF COMPILERVERSION < 23} |
| 63 |
{$DEFINE CPUX86} // CPUX86 was added in Delphi XE2 (added Win64 compiler) |
| 64 |
{$IFEND} |
| 65 |
{$IF COMPILERVERSION >= 17} //Delphi 2005 |
| 66 |
{$IFNDEF DEBUG} |
| 67 |
{$DEFINE INLINE} //added inlining |
| 68 |
{$ENDIF} |
| 69 |
{$DEFINE NESTED_TYPES} //added nested types & nested constants |
| 70 |
{$IF COMPILERVERSION >= 18} //Delphi 2006 |
| 71 |
{$DEFINE ABSTRACT_CLASSES} //added abstract classes |
| 72 |
{$DEFINE REPORTMEMORYLEAKS} //added ReportMemoryLeaksOnShutdown |
| 73 |
{$WARN SYMBOL_PLATFORM OFF} |
| 74 |
{$DEFINE SETSIZE} //added TBitmap.SetSize |
| 75 |
{$IF COMPILERVERSION >= 18.5} //Delphi 2007 |
| 76 |
{$DEFINE RECORD_METHODS} //added records with methods |
| 77 |
{$DEFINE DELPHI_PNG} //added PNG support |
| 78 |
{$DEFINE DELPHI_GIF} //added GIF support |
| 79 |
{$DEFINE MAINFORMONTASKBAR} //added TApplication.MainFormOnTaskbar |
| 80 |
{$if CompilerVersion >= 20} //Delphi 2009 |
| 81 |
{$DEFINE PBYTE} //added PByte |
| 82 |
{$DEFINE CHARINSET} //added CharInSet function |
| 83 |
{$DEFINE EXIT_PARAM} //added Exit(value) |
| 84 |
{$DEFINE ALPHAFORMAT} //added TBitmap.AlphaFormat property |
| 85 |
{$DEFINE SUPPORTS_POINTERMATH} //added {$POINTERMATH ON/OFF} |
| 86 |
{$DEFINE CLASS_STATIC} //added class static methods |
| 87 |
{$IF COMPILERVERSION >= 21} //Delphi 2010 |
| 88 |
{$IFNDEF DEBUG} |
| 89 |
{$DEFINE INLINE_COMPATIBLE} //avoid compiler bug with INLINE in Delphi 2005-2009 ("incompatible type") |
| 90 |
{$ENDIF} |
| 91 |
{$DEFINE GESTURES} //added screen gesture support |
| 92 |
{$IF COMPILERVERSION >= 23} //DelphiXE2 |
| 93 |
{$DEFINE USES_NAMESPACES} |
| 94 |
{$DEFINE FORMATSETTINGS} |
| 95 |
{$DEFINE TROUNDINGMODE} |
| 96 |
{$DEFINE UITYPES} //added UITypes unit |
| 97 |
{$DEFINE XPLAT_GENERICS} //cross-platform generics support |
| 98 |
{$DEFINE STYLESERVICES} //added StyleServices unit |
| 99 |
{$IF COMPILERVERSION >= 24} //DelphiXE3 |
| 100 |
{$LEGACYIFEND ON} |
| 101 |
{$DEFINE NEWPOSFUNC} |
| 102 |
{$DEFINE ZEROBASEDSTR} |
| 103 |
{$IF COMPILERVERSION >= 25} //DelphiXE4 |
| 104 |
{$LEGACYIFEND ON} //avoids compiler warning |
| 105 |
{$IFEND} |
| 106 |
{$IFEND} |
| 107 |
{$IFEND} |
| 108 |
{$IFEND} |
| 109 |
{$IFEND} |
| 110 |
{$IFEND} |
| 111 |
{$IFEND} |
| 112 |
{$IFEND} |
| 113 |
{$ENDIF} |
| 114 |
|
| 115 |
{$IFOPT Q+} |
| 116 |
{$DEFINE OVERFLOWCHECKS_ENABLED} |
| 117 |
{$ENDIF} |
| 118 |
{$IFOPT R+} |
| 119 |
{$DEFINE RANGECHECKS_ENABLED} |
| 120 |
{$ENDIF} |
| 121 |
|