layer.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. MagickCore image layer methods.
  13. */
  14. #ifndef MAGICKCORE_LAYER_H
  15. #define MAGICKCORE_LAYER_H
  16. #if defined(__cplusplus) || defined(c_plusplus)
  17. extern "C" {
  18. #endif
  19. typedef enum
  20. {
  21. UnrecognizedDispose,
  22. UndefinedDispose = 0,
  23. NoneDispose = 1,
  24. BackgroundDispose = 2,
  25. PreviousDispose = 3
  26. } DisposeType;
  27. typedef enum
  28. {
  29. UndefinedLayer,
  30. CoalesceLayer,
  31. CompareAnyLayer,
  32. CompareClearLayer,
  33. CompareOverlayLayer,
  34. DisposeLayer,
  35. OptimizeLayer,
  36. OptimizeImageLayer,
  37. OptimizePlusLayer,
  38. OptimizeTransLayer,
  39. RemoveDupsLayer,
  40. RemoveZeroLayer,
  41. CompositeLayer,
  42. MergeLayer,
  43. FlattenLayer,
  44. MosaicLayer,
  45. TrimBoundsLayer
  46. } ImageLayerMethod;
  47. extern MagickExport Image
  48. *CoalesceImages(const Image *,ExceptionInfo *),
  49. *DisposeImages(const Image *,ExceptionInfo *),
  50. *CompareImageLayers(const Image *,const ImageLayerMethod,ExceptionInfo *),
  51. *DeconstructImages(const Image *,ExceptionInfo *),
  52. *MergeImageLayers(Image *,const ImageLayerMethod,ExceptionInfo *),
  53. *OptimizeImageLayers(const Image *,ExceptionInfo *),
  54. *OptimizePlusImageLayers(const Image *,ExceptionInfo *);
  55. extern MagickExport void
  56. CompositeLayers(Image *,const CompositeOperator,Image *,const ssize_t,
  57. const ssize_t,ExceptionInfo *),
  58. OptimizeImageTransparency(const Image *,ExceptionInfo *),
  59. RemoveDuplicateLayers(Image **,ExceptionInfo *),
  60. RemoveZeroDelayLayers(Image **,ExceptionInfo *);
  61. #if defined(__cplusplus) || defined(c_plusplus)
  62. }
  63. #endif
  64. #endif