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 #if defined(__cplusplus) || defined(c_plusplus) 22 extern "C" { 23 #endif 24 25 typedef enum 26 { 27 UnrecognizedDispose, 28 UndefinedDispose = 0, 29 NoneDispose = 1, 30 BackgroundDispose = 2, 31 PreviousDispose = 3 32 } DisposeType; 33 34 typedef enum 35 { 36 UndefinedLayer, 37 CoalesceLayer, 38 CompareAnyLayer, 39 CompareClearLayer, 40 CompareOverlayLayer, 41 DisposeLayer, 42 OptimizeLayer, 43 OptimizeImageLayer, 44 OptimizePlusLayer, 45 OptimizeTransLayer, 46 RemoveDupsLayer, 47 RemoveZeroLayer, 48 CompositeLayer, 49 MergeLayer, 50 FlattenLayer, 51 MosaicLayer, 52 TrimBoundsLayer 53 } ImageLayerMethod; 54 55 extern MagickExport Image 56 *CoalesceImages(const Image *,ExceptionInfo *), 57 *DisposeImages(const Image *,ExceptionInfo *), 58 *CompareImageLayers(const Image *,const ImageLayerMethod,ExceptionInfo *), 59 *DeconstructImages(const Image *,ExceptionInfo *), 60 *MergeImageLayers(Image *,const ImageLayerMethod,ExceptionInfo *), 61 *OptimizeImageLayers(const Image *,ExceptionInfo *), 62 *OptimizePlusImageLayers(const Image *,ExceptionInfo *); 63 64 extern MagickExport void 65 CompositeLayers(Image *,const CompositeOperator,Image *,const ssize_t, 66 const ssize_t,ExceptionInfo *), 67 OptimizeImageTransparency(const Image *,ExceptionInfo *), 68 RemoveDuplicateLayers(Image **,ExceptionInfo *), 69 RemoveZeroDelayLayers(Image **,ExceptionInfo *); 70 71 #if defined(__cplusplus) || defined(c_plusplus) 72 } 73 #endif 74 75 #endif 76