blob: 103178924aa35786bf986f989bbdab72f1150445 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
Cristy7ce65e72015-12-12 18:03:16 -05002 Copyright 1999-2016 ImageMagick Studio LLC, a non-profit organization
cristy3ed852e2009-09-05 21:47:34 +00003 dedicated to making software imaging solutions freely available.
4
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
7
8 http://www.imagemagick.org/script/license.php
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 Pixel Iterator Methods.
17*/
18#ifndef _MAGICKWAND_PIXEL_ITERATOR_H
19#define _MAGICKWAND_PIXEL_ITERATOR_H
20
cristy6398ec72013-11-28 02:00:27 +000021#include "MagickWand/MagickWand.h"
22#include "MagickWand/pixel-wand.h"
23
cristy3ed852e2009-09-05 21:47:34 +000024#if defined(__cplusplus) || defined(c_plusplus)
25extern "C" {
26#endif
27
cristy3ed852e2009-09-05 21:47:34 +000028typedef struct _PixelIterator
29 PixelIterator;
30
31extern WandExport char
32 *PixelGetIteratorException(const PixelIterator *,ExceptionType *);
33
34extern WandExport ExceptionType
35 PixelGetIteratorExceptionType(const PixelIterator *);
36
cristy3ed852e2009-09-05 21:47:34 +000037extern WandExport MagickBooleanType
38 IsPixelIterator(const PixelIterator *),
39 PixelClearIteratorException(PixelIterator *),
cristybb503372010-05-27 20:51:26 +000040 PixelSetIteratorRow(PixelIterator *,const ssize_t),
cristy3ed852e2009-09-05 21:47:34 +000041 PixelSyncIterator(PixelIterator *);
42
43extern WandExport PixelIterator
44 *ClonePixelIterator(const PixelIterator *),
45 *DestroyPixelIterator(PixelIterator *),
46 *NewPixelIterator(MagickWand *),
cristy5ed838e2010-05-31 00:05:35 +000047 *NewPixelRegionIterator(MagickWand *,const ssize_t,const ssize_t,const size_t,
48 const size_t);
cristy3ed852e2009-09-05 21:47:34 +000049
50extern WandExport PixelWand
cristybb503372010-05-27 20:51:26 +000051 **PixelGetCurrentIteratorRow(PixelIterator *,size_t *),
52 **PixelGetNextIteratorRow(PixelIterator *,size_t *),
53 **PixelGetPreviousIteratorRow(PixelIterator *,size_t *);
cristy3ed852e2009-09-05 21:47:34 +000054
cristy5ed838e2010-05-31 00:05:35 +000055extern WandExport ssize_t
56 PixelGetIteratorRow(PixelIterator *);
57
cristy3ed852e2009-09-05 21:47:34 +000058extern WandExport void
59 ClearPixelIterator(PixelIterator *),
60 PixelResetIterator(PixelIterator *),
61 PixelSetFirstIteratorRow(PixelIterator *),
62 PixelSetLastIteratorRow(PixelIterator *);
63
64#if defined(__cplusplus) || defined(c_plusplus)
65}
66#endif
67
68#endif