diff options
| author | Mike Wey | 2011-10-30 17:28:07 +0100 |
|---|---|---|
| committer | Mike Wey | 2011-10-30 17:28:07 +0100 |
| commit | e2b7ac4bdd423f8fd658db359ca9d0ed800b289f (patch) | |
| tree | 122cfd01b3aefe2933889f33ec1c930b40059b24 /dmagick/c/magickType.d | |
| parent | ca660474dedc00bd0527b4c2b791d67cb0117f4c (diff) | |
Even more Documentation.
Diffstat (limited to 'dmagick/c/magickType.d')
| -rw-r--r-- | dmagick/c/magickType.d | 47 |
1 files changed, 40 insertions, 7 deletions
diff --git a/dmagick/c/magickType.d b/dmagick/c/magickType.d index 7a8b845..32b2e5f 100644 --- a/dmagick/c/magickType.d +++ b/dmagick/c/magickType.d @@ -6,46 +6,78 @@ extern (C) { version(Quantum8) { + /** + * Quantum is an alias for the smallest integer that can hold + * a pixel channel. + */ alias ubyte Quantum; alias double MagickRealType; - enum MAGICKCORE_QUANTUM_DEPTH = 8; + /** + * The largest value that fits in a Quantum, This is the same + * as Quantum.max except when the Quantum dept is 64 bits. + */ enum QuantumRange = Quantum.max; + enum MAGICKCORE_QUANTUM_DEPTH = 8; enum MaxColormapSize = 256; enum MagickEpsilon = 1.0e-6; enum MagickHuge = 1.0e6; } else version(Quantum32) { + /** + * Quantum is an alias for the smallest integer that can hold + * a pixel channel. + */ alias uint Quantum; alias double MagickRealType; - enum MAGICKCORE_QUANTUM_DEPTH = 32; + /** + * The largest value that fits in a Quantum, This is the same + * as Quantum.max except when the Quantum dept is 64 bits. + */ enum QuantumRange = Quantum.max; + enum MAGICKCORE_QUANTUM_DEPTH = 32; enum MaxColormapSize = 65536; enum MagickEpsilon = 1.0e-10; enum MagickHuge = 1.0e12; } else version(Quantum64) { + /** + * Quantum is an alias for the smallest integer that can hold + * a pixel channel. + */ alias double Quantum; //real seems to be the same size as long double for //dmc and dmd on windows and for dmd and gcc on linux. alias real MagickRealType; - enum MAGICKCORE_QUANTUM_DEPTH = 64; + /** + * The largest value that fits in a Quantum, This is the same + * as Quantum.max except when the Quantum dept is 64 bits. + */ enum QuantumRange = 18446744073709551615.0; + enum MAGICKCORE_QUANTUM_DEPTH = 64; enum MaxColormapSize = 65536; enum MagickEpsilon = 1.0e-10; enum MagickHuge = 1.0e12; } else { + /** + * Quantum is an alias for the smallest integer that can hold + * a pixel channel. + */ alias ushort Quantum; alias double MagickRealType; - enum MAGICKCORE_QUANTUM_DEPTH = 16; + /** + * The largest value that fits in a Quantum, This is the same + * as Quantum.max except when the Quantum dept is 64 bits. + */ enum QuantumRange = Quantum.max; + enum MAGICKCORE_QUANTUM_DEPTH = 16; enum MaxColormapSize = 65536; enum MagickEpsilon = 1.0e-10; enum MagickHuge = 1.0e12; @@ -57,13 +89,14 @@ extern (C) alias int MagickBooleanType; alias MagickSizeType QuantumAny; - alias QuantumRange TransparentOpacity; alias MaxColormapSize MaxMap; + enum MaxTextExtent = 4096; + /// The Quantum depth ImageMagick / DMagick is compiled with. alias MAGICKCORE_QUANTUM_DEPTH MagickQuantumDepth; - enum MaxTextExtent = 4096; - enum OpaqueOpacity = 0; + alias QuantumRange TransparentOpacity; /// Fully transparent Quantum. + enum OpaqueOpacity = 0; /// Fully opaque Quantum. version(D_Ddoc) { |
