MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
image-private.h File Reference
Include dependency graph for image-private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BackgroundColor   "#ffffff" /* white */
 
#define BorderColor   "#dfdfdf" /* gray */
 
#define DefaultResolution   72.0
 
#define DefaultTileFrame   "15x15+3+3"
 
#define DefaultTileGeometry   "120x120+4+3>"
 
#define DefaultTileLabel   "%f\n%G\n%b"
 
#define ForegroundColor   "#000" /* black */
 
#define LoadImagesTag   "Load/Images"
 
#define LoadImageTag   "Load/Image"
 
#define Magick2PI   6.28318530717958647692528676655900576839433879875020
 
#define MagickAbsoluteValue(x)   ((x) < 0 ? -(x) : (x))
 
#define MagickMax(x, y)   (((x) > (y)) ? (x) : (y))
 
#define MagickMin(x, y)   (((x) < (y)) ? (x) : (y))
 
#define MagickPHI   1.61803398874989484820458683436563811772030917980576
 
#define MagickPI2   1.57079632679489661923132169163975144209858469968755
 
#define MagickPI   3.14159265358979323846264338327950288419716939937510
 
#define MagickSQ1_2   0.70710678118654752440084436210484903928483593768847
 
#define MagickSQ2   1.41421356237309504880168872420969807856967187537695
 
#define MagickSQ2PI   2.50662827463100024161235523934010416269302368164062
 
#define MatteColor   "#bdbdbd" /* gray */
 
#define PSDensityGeometry   "72.0x72.0"
 
#define PSPageGeometry   "612x792"
 
#define SaveImagesTag   "Save/Images"
 
#define SaveImageTag   "Save/Image"
 
#define TransparentColor   "#00000000" /* transparent black */
 
#define UndefinedCompressionQuality   0UL
 
#define UndefinedTicksPerSecond   100L
 

Functions

static ssize_t CastDoubleToLong (const double x)
 
static QuantumAny CastDoubleToQuantumAny (const double x)
 
static double DegreesToRadians (const double degrees)
 
static size_t GetImageChannels (const Image *image)
 
static double RadiansToDegrees (const double radians)
 
static unsigned char ScaleColor5to8 (const unsigned int color)
 
static unsigned char ScaleColor6to8 (const unsigned int color)
 
static unsigned int ScaleColor8to5 (const unsigned char color)
 
static unsigned int ScaleColor8to6 (const unsigned char color)
 

Macro Definition Documentation

◆ BackgroundColor

#define BackgroundColor   "#ffffff" /* white */

Definition at line 27 of file image-private.h.

◆ BorderColor

#define BorderColor   "#dfdfdf" /* gray */

Definition at line 28 of file image-private.h.

◆ DefaultResolution

#define DefaultResolution   72.0

Definition at line 29 of file image-private.h.

◆ DefaultTileFrame

#define DefaultTileFrame   "15x15+3+3"

Definition at line 30 of file image-private.h.

◆ DefaultTileGeometry

#define DefaultTileGeometry   "120x120+4+3>"

Definition at line 31 of file image-private.h.

◆ DefaultTileLabel

#define DefaultTileLabel   "%f\n%G\n%b"

Definition at line 32 of file image-private.h.

◆ ForegroundColor

#define ForegroundColor   "#000" /* black */

Definition at line 33 of file image-private.h.

◆ LoadImagesTag

#define LoadImagesTag   "Load/Images"

Definition at line 34 of file image-private.h.

◆ LoadImageTag

#define LoadImageTag   "Load/Image"

Definition at line 35 of file image-private.h.

◆ Magick2PI

#define Magick2PI   6.28318530717958647692528676655900576839433879875020

Definition at line 36 of file image-private.h.

◆ MagickAbsoluteValue

#define MagickAbsoluteValue (   x)    ((x) < 0 ? -(x) : (x))

Definition at line 37 of file image-private.h.

◆ MagickMax

#define MagickMax (   x,
 
)    (((x) > (y)) ? (x) : (y))

Definition at line 38 of file image-private.h.

◆ MagickMin

#define MagickMin (   x,
 
)    (((x) < (y)) ? (x) : (y))

Definition at line 39 of file image-private.h.

◆ MagickPHI

#define MagickPHI   1.61803398874989484820458683436563811772030917980576

Definition at line 40 of file image-private.h.

◆ MagickPI

#define MagickPI   3.14159265358979323846264338327950288419716939937510

Definition at line 42 of file image-private.h.

◆ MagickPI2

#define MagickPI2   1.57079632679489661923132169163975144209858469968755

Definition at line 41 of file image-private.h.

◆ MagickSQ1_2

#define MagickSQ1_2   0.70710678118654752440084436210484903928483593768847

Definition at line 43 of file image-private.h.

◆ MagickSQ2

#define MagickSQ2   1.41421356237309504880168872420969807856967187537695

Definition at line 44 of file image-private.h.

◆ MagickSQ2PI

#define MagickSQ2PI   2.50662827463100024161235523934010416269302368164062

Definition at line 45 of file image-private.h.

◆ MatteColor

#define MatteColor   "#bdbdbd" /* gray */

Definition at line 46 of file image-private.h.

◆ PSDensityGeometry

#define PSDensityGeometry   "72.0x72.0"

Definition at line 47 of file image-private.h.

◆ PSPageGeometry

#define PSPageGeometry   "612x792"

Definition at line 48 of file image-private.h.

◆ SaveImagesTag

#define SaveImagesTag   "Save/Images"

Definition at line 49 of file image-private.h.

◆ SaveImageTag

#define SaveImageTag   "Save/Image"

Definition at line 50 of file image-private.h.

◆ TransparentColor

#define TransparentColor   "#00000000" /* transparent black */

Definition at line 51 of file image-private.h.

◆ UndefinedCompressionQuality

#define UndefinedCompressionQuality   0UL

Definition at line 52 of file image-private.h.

◆ UndefinedTicksPerSecond

#define UndefinedTicksPerSecond   100L

Definition at line 53 of file image-private.h.

Function Documentation

◆ CastDoubleToLong()

◆ CastDoubleToQuantumAny()

static QuantumAny CastDoubleToQuantumAny ( const double  x)
inlinestatic

Definition at line 68 of file image-private.h.

References IsNaN.

◆ DegreesToRadians()

◆ GetImageChannels()

◆ RadiansToDegrees()

static double RadiansToDegrees ( const double  radians)
inlinestatic

◆ ScaleColor5to8()

static unsigned char ScaleColor5to8 ( const unsigned int  color)
inlinestatic

Definition at line 108 of file image-private.h.

◆ ScaleColor6to8()

static unsigned char ScaleColor6to8 ( const unsigned int  color)
inlinestatic

Definition at line 113 of file image-private.h.

◆ ScaleColor8to5()

static unsigned int ScaleColor8to5 ( const unsigned char  color)
inlinestatic

Definition at line 118 of file image-private.h.

◆ ScaleColor8to6()

static unsigned int ScaleColor8to6 ( const unsigned char  color)
inlinestatic

Definition at line 123 of file image-private.h.