#endif
#include <MagickCore/color.h>
+#include <MagickCore/pixel.h>
-#define OpaqueAlpha (QuantumRange)
-#define TransparentAlpha ((Quantum) 0UL)
+#define OpaqueAlpha ((Quantum) QuantumRange)
+#define TransparentAlpha ((Quantum) 0)
typedef enum
{
SetAlphaChannel,
ShapeAlphaChannel,
TransparentAlphaChannel
-} AlphaChannelType;
+} AlphaChannelOption;
typedef enum
{
orientation; /* photo orientation of image */
MagickBooleanType
- taint, /* has image been modified since reading */
- matte; /* is transparency channel defined and active */
+ taint; /* has image been modified since reading */
size_t
columns, /* physical size of image */
MagickBooleanType
mask;
+ PixelTrait
+ alpha_trait; /* is transparency channel defined and active */
+
size_t
number_channels,
number_meta_channels,
SemaphoreInfo
*semaphore;
+
struct _Image
- *previous, /* Image sequence list links */
- *list,
+ *list, /* Undo/Redo image processing list (for display) */
+ *previous, /* Image list links */
*next;
size_t
signature;
};
+extern MagickExport ChannelType
+ SetImageChannelMask(Image *,const ChannelType);
+
extern MagickExport const char
DefaultTileGeometry[],
DefaultTileLabel[],
ModifyImage(Image **,ExceptionInfo *),
ResetImagePage(Image *,const char *),
SetImageAlpha(Image *,const Quantum,ExceptionInfo *),
- SetImageAlphaChannel(Image *,const AlphaChannelType,ExceptionInfo *),
+ SetImageAlphaChannel(Image *,const AlphaChannelOption,ExceptionInfo *),
SetImageBackgroundColor(Image *,ExceptionInfo *),
SetImageColor(Image *,const PixelInfo *,ExceptionInfo *),
SetImageExtent(Image *,const size_t,const size_t,ExceptionInfo *),