pixel-iterator.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. Pixel Iterator Methods.
  13. */
  14. #ifndef MAGICKWAND_PIXEL_ITERATOR_H
  15. #define MAGICKWAND_PIXEL_ITERATOR_H
  16. #include "wand/magick-wand.h"
  17. #include "wand/pixel-wand.h"
  18. #if defined(__cplusplus) || defined(c_plusplus)
  19. extern "C" {
  20. #endif
  21. typedef struct _PixelIterator
  22. PixelIterator;
  23. extern WandExport char
  24. *PixelGetIteratorException(const PixelIterator *,ExceptionType *);
  25. extern WandExport ExceptionType
  26. PixelGetIteratorExceptionType(const PixelIterator *);
  27. extern WandExport MagickBooleanType
  28. IsPixelIterator(const PixelIterator *),
  29. PixelClearIteratorException(PixelIterator *),
  30. PixelSetIteratorRow(PixelIterator *,const ssize_t),
  31. PixelSyncIterator(PixelIterator *);
  32. extern WandExport PixelIterator
  33. *ClonePixelIterator(const PixelIterator *),
  34. *DestroyPixelIterator(PixelIterator *),
  35. *NewPixelIterator(MagickWand *),
  36. *NewPixelRegionIterator(MagickWand *,const ssize_t,const ssize_t,const size_t,
  37. const size_t);
  38. extern WandExport PixelWand
  39. **PixelGetCurrentIteratorRow(PixelIterator *,size_t *),
  40. **PixelGetNextIteratorRow(PixelIterator *,size_t *),
  41. **PixelGetPreviousIteratorRow(PixelIterator *,size_t *);
  42. extern WandExport ssize_t
  43. PixelGetIteratorRow(PixelIterator *);
  44. extern WandExport void
  45. ClearPixelIterator(PixelIterator *),
  46. PixelResetIterator(PixelIterator *),
  47. PixelSetFirstIteratorRow(PixelIterator *),
  48. PixelSetLastIteratorRow(PixelIterator *);
  49. #if defined(__cplusplus) || defined(c_plusplus)
  50. }
  51. #endif
  52. #endif