channel.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 channel methods.
  13. */
  14. #ifndef MAGICKCORE_CHANNEL_H
  15. #define MAGICKCORE_CHANNEL_H
  16. #include "magick/image.h"
  17. #if defined(__cplusplus) || defined(c_plusplus)
  18. extern "C" {
  19. #endif
  20. typedef enum
  21. {
  22. UndefinedAlphaChannel,
  23. ActivateAlphaChannel,
  24. BackgroundAlphaChannel,
  25. CopyAlphaChannel,
  26. DeactivateAlphaChannel,
  27. ExtractAlphaChannel,
  28. OpaqueAlphaChannel,
  29. ResetAlphaChannel, /* deprecated */
  30. SetAlphaChannel,
  31. ShapeAlphaChannel,
  32. TransparentAlphaChannel,
  33. FlattenAlphaChannel,
  34. RemoveAlphaChannel,
  35. AssociateAlphaChannel,
  36. DisassociateAlphaChannel,
  37. OffIfOpaqueAlphaChannel
  38. } AlphaChannelType;
  39. extern MagickExport Image
  40. *CombineImages(const Image *,const ChannelType,ExceptionInfo *),
  41. *SeparateImage(const Image *,const ChannelType,ExceptionInfo *),
  42. *SeparateImages(const Image *,const ChannelType,ExceptionInfo *);
  43. extern MagickExport MagickBooleanType
  44. GetImageAlphaChannel(const Image *),
  45. SeparateImageChannel(Image *,const ChannelType),
  46. SetImageAlphaChannel(Image *,const AlphaChannelType);
  47. #if defined(__cplusplus) || defined(c_plusplus)
  48. }
  49. #endif
  50. #endif