pixel-wand.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /*
  2. Copyright 1999 ImageMagick Studio LLC, a non-profit organization
  3. dedicated to making software imaging solutions freely available.
  4. You may not use this file except in compliance with the License. You may
  5. obtain a copy of the License at
  6. https://imagemagick.org/script/license.php
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. MagickWand pixel wand methods.
  13. */
  14. #ifndef MAGICKWAND_PIXEL_WAND_H
  15. #define MAGICKWAND_PIXEL_WAND_H
  16. #if defined(__cplusplus) || defined(c_plusplus)
  17. extern "C" {
  18. #endif
  19. typedef struct _PixelWand
  20. PixelWand;
  21. extern WandExport char
  22. *PixelGetColorAsNormalizedString(const PixelWand *),
  23. *PixelGetColorAsString(const PixelWand *),
  24. *PixelGetException(const PixelWand *,ExceptionType *);
  25. extern WandExport double
  26. PixelGetAlpha(const PixelWand *) magick_attribute((__pure__)),
  27. PixelGetBlack(const PixelWand *) magick_attribute((__pure__)),
  28. PixelGetBlue(const PixelWand *) magick_attribute((__pure__)),
  29. PixelGetCyan(const PixelWand *) magick_attribute((__pure__)),
  30. PixelGetFuzz(const PixelWand *) magick_attribute((__pure__)),
  31. PixelGetGreen(const PixelWand *) magick_attribute((__pure__)),
  32. PixelGetMagenta(const PixelWand *) magick_attribute((__pure__)),
  33. PixelGetOpacity(const PixelWand *) magick_attribute((__pure__)),
  34. PixelGetRed(const PixelWand *) magick_attribute((__pure__)),
  35. PixelGetYellow(const PixelWand *) magick_attribute((__pure__));
  36. extern WandExport ExceptionType
  37. PixelGetExceptionType(const PixelWand *);
  38. extern WandExport IndexPacket
  39. PixelGetIndex(const PixelWand *);
  40. extern WandExport MagickBooleanType
  41. IsPixelWand(const PixelWand *),
  42. IsPixelWandSimilar(PixelWand *,PixelWand *,const double),
  43. PixelClearException(PixelWand *),
  44. PixelSetColor(PixelWand *,const char *);
  45. extern WandExport PixelWand
  46. *ClonePixelWand(const PixelWand *),
  47. **ClonePixelWands(const PixelWand **,const size_t),
  48. *DestroyPixelWand(PixelWand *),
  49. **DestroyPixelWands(PixelWand **,const size_t),
  50. *NewPixelWand(void),
  51. **NewPixelWands(const size_t);
  52. extern WandExport Quantum
  53. PixelGetAlphaQuantum(const PixelWand *) magick_attribute((__pure__)),
  54. PixelGetBlackQuantum(const PixelWand *) magick_attribute((__pure__)),
  55. PixelGetBlueQuantum(const PixelWand *) magick_attribute((__pure__)),
  56. PixelGetCyanQuantum(const PixelWand *) magick_attribute((__pure__)),
  57. PixelGetGreenQuantum(const PixelWand *) magick_attribute((__pure__)),
  58. PixelGetMagentaQuantum(const PixelWand *) magick_attribute((__pure__)),
  59. PixelGetOpacityQuantum(const PixelWand *) magick_attribute((__pure__)),
  60. PixelGetRedQuantum(const PixelWand *) magick_attribute((__pure__)),
  61. PixelGetYellowQuantum(const PixelWand *) magick_attribute((__pure__));
  62. extern WandExport size_t
  63. PixelGetColorCount(const PixelWand *) magick_attribute((__pure__));
  64. extern WandExport void
  65. ClearPixelWand(PixelWand *),
  66. PixelGetHSL(const PixelWand *,double *,double *,double *),
  67. PixelGetMagickColor(const PixelWand *,MagickPixelPacket *),
  68. PixelGetQuantumColor(const PixelWand *,PixelPacket *),
  69. PixelSetAlpha(PixelWand *,const double),
  70. PixelSetAlphaQuantum(PixelWand *,const Quantum),
  71. PixelSetBlack(PixelWand *,const double),
  72. PixelSetBlackQuantum(PixelWand *,const Quantum),
  73. PixelSetBlue(PixelWand *,const double),
  74. PixelSetBlueQuantum(PixelWand *,const Quantum),
  75. PixelSetColorFromWand(PixelWand *,const PixelWand *),
  76. PixelSetColorCount(PixelWand *,const size_t),
  77. PixelSetCyan(PixelWand *,const double),
  78. PixelSetCyanQuantum(PixelWand *,const Quantum),
  79. PixelSetFuzz(PixelWand *,const double),
  80. PixelSetGreen(PixelWand *,const double),
  81. PixelSetGreenQuantum(PixelWand *,const Quantum),
  82. PixelSetHSL(PixelWand *,const double,const double,const double),
  83. PixelSetIndex(PixelWand *,const IndexPacket),
  84. PixelSetMagenta(PixelWand *,const double),
  85. PixelSetMagentaQuantum(PixelWand *,const Quantum),
  86. PixelSetMagickColor(PixelWand *,const MagickPixelPacket *),
  87. PixelSetOpacity(PixelWand *,const double),
  88. PixelSetOpacityQuantum(PixelWand *,const Quantum),
  89. PixelSetQuantumColor(PixelWand *,const PixelPacket *),
  90. PixelSetRed(PixelWand *,const double),
  91. PixelSetRedQuantum(PixelWand *,const Quantum),
  92. PixelSetYellow(PixelWand *,const double),
  93. PixelSetYellowQuantum(PixelWand *,const Quantum);
  94. #if defined(__cplusplus) || defined(c_plusplus)
  95. }
  96. #endif
  97. #endif