• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2   Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization
3   dedicated to making software imaging solutions freely available.
4 
5   You may not use this file except in compliance with the License.  You may
6   obtain a copy of the License at
7 
8     https://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   MagickCore image layer methods.
17 */
18 #ifndef MAGICKCORE_LAYER_H
19 #define MAGICKCORE_LAYER_H
20 
21 #include "MagickCore/composite.h"
22 
23 #if defined(__cplusplus) || defined(c_plusplus)
24 extern "C" {
25 #endif
26 
27 typedef enum
28 {
29   UnrecognizedDispose,
30   UndefinedDispose = 0,
31   NoneDispose = 1,
32   BackgroundDispose = 2,
33   PreviousDispose = 3
34 } DisposeType;
35 
36 typedef enum
37 {
38   UndefinedLayer,
39   CoalesceLayer,
40   CompareAnyLayer,
41   CompareClearLayer,
42   CompareOverlayLayer,
43   DisposeLayer,
44   OptimizeLayer,
45   OptimizeImageLayer,
46   OptimizePlusLayer,
47   OptimizeTransLayer,
48   RemoveDupsLayer,
49   RemoveZeroLayer,
50   CompositeLayer,
51   MergeLayer,
52   FlattenLayer,
53   MosaicLayer,
54   TrimBoundsLayer
55 } LayerMethod;
56 
57 extern MagickExport Image
58   *CoalesceImages(const Image *,ExceptionInfo *),
59   *DisposeImages(const Image *,ExceptionInfo *),
60   *CompareImagesLayers(const Image *,const LayerMethod,ExceptionInfo *),
61   *MergeImageLayers(Image *,const LayerMethod,ExceptionInfo *),
62   *OptimizeImageLayers(const Image *,ExceptionInfo *),
63   *OptimizePlusImageLayers(const Image *,ExceptionInfo *);
64 
65 extern MagickExport void
66   CompositeLayers(Image *,const CompositeOperator,Image *,const ssize_t,
67     const ssize_t,ExceptionInfo *),
68   OptimizeImageTransparency(const Image *,ExceptionInfo *),
69   RemoveDuplicateLayers(Image **,ExceptionInfo *),
70   RemoveZeroDelayLayers(Image **,ExceptionInfo *);
71 
72 #if defined(__cplusplus) || defined(c_plusplus)
73 }
74 #endif
75 
76 #endif
77