MagickCore  7.0.3
channel.c File Reference
Include dependency graph for channel.c:

Go to the source code of this file.

Macros

#define ChannelFxImageTag   "ChannelFx/Image"
 
#define CombineImageTag   "Combine/Image"
 
#define GetChannelBit(mask, bit)   (((size_t) (mask) >> (size_t) (bit)) & 0x01)
 
#define SeparateImageTag   "Separate/Image"
 

Enumerations

enum  ChannelFx { ExtractChannelOp, AssignChannelOp, ExchangeChannelOp, TransferChannelOp }
 

Functions

static MagickBooleanType ChannelImage (Image *destination_image, const PixelChannel destination_channel, const ChannelFx channel_op, const Image *source_image, const PixelChannel source_channel, const Quantum pixel, ExceptionInfo *exception)
 
MagickExport ImageChannelFxImage (const Image *image, const char *expression, ExceptionInfo *exception)
 
MagickExport ImageCombineImages (const Image *image, const ColorspaceType colorspace, ExceptionInfo *exception)
 
MagickExport MagickBooleanType GetImageAlphaChannel (const Image *image)
 
MagickExport ImageSeparateImage (const Image *image, const ChannelType channel_type, ExceptionInfo *exception)
 
MagickExport ImageSeparateImages (const Image *image, ExceptionInfo *exception)
 
static void FlattenPixelInfo (const Image *image, const PixelInfo *p, const double alpha, const Quantum *q, const double beta, Quantum *composite)
 
MagickExport MagickBooleanType SetImageAlphaChannel (Image *image, const AlphaChannelOption alpha_type, ExceptionInfo *exception)
 

Macro Definition Documentation

#define ChannelFxImageTag   "ChannelFx/Image"

Referenced by ChannelFxImage().

#define CombineImageTag   "Combine/Image"

Referenced by CombineImages().

#define GetChannelBit (   mask,
  bit 
)    (((size_t) (mask) >> (size_t) (bit)) & 0x01)

Referenced by SeparateImage().

#define SeparateImageTag   "Separate/Image"

Referenced by SeparateImage().

Enumeration Type Documentation

enum ChannelFx
Enumerator
ExtractChannelOp 
AssignChannelOp 
ExchangeChannelOp 
TransferChannelOp 

Definition at line 108 of file channel.c.

Function Documentation

static void FlattenPixelInfo ( const Image image,
const PixelInfo p,
const double  alpha,
const Quantum q,
const double  beta,
Quantum composite 
)
inlinestatic
MagickExport MagickBooleanType SetImageAlphaChannel ( Image image,
const AlphaChannelOption  alpha_type,
ExceptionInfo exception 
)

Definition at line 950 of file channel.c.

References AcquireAuthenticCacheView(), ActivateAlphaChannel, _PixelInfo::alpha, _PixelInfo::alpha_trait, _Image::alpha_trait, AlphaCompositeOp, AlphaPixelChannel, AssociateAlphaChannel, _Image::background_color, BackgroundAlphaChannel, BlendPixelTrait, _Image::channel_mask, ClampToQuantum(), _Image::columns, CompositeImage(), CopyAlphaChannel, CopyPixelTrait, DeactivateAlphaChannel, _Image::debug, DestroyCacheView(), DirectClass, DisassociateAlphaChannel, DiscreteAlphaChannel, ExtractAlphaChannel, FlattenPixelInfo(), GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelAlpha(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelReadMask(), IntensityCompositeOp, LevelImageColors(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, OffAlphaChannel, OnAlphaChannel, OpaqueAlpha, OpaqueAlphaChannel, PerceptibleReciprocal(), QuantumScale, RemoveAlphaChannel, _Image::rows, SetAlphaChannel, SetImageAlpha(), SetImageStorageClass(), SetPixelChannel(), SetPixelChannelMask(), SetPixelViaPixelInfo(), ShapeAlphaChannel, _Image::signature, SyncCacheViewAuthenticPixels(), SyncImagePixelCache(), TraceEvent, TransparentAlpha, TransparentAlphaChannel, UndefinedAlphaChannel, UndefinedPixelTrait, and UpdatePixelTrait.

Referenced by CannyEdgeImage(), ClearBounds(), ClutImage(), CompareImages(), CompositeImage(), DistortResizeImage(), DrawPolygonPrimitive(), DrawPrimitive(), HaldClutImage(), MorphologyApply(), PolaroidImage(), RenderPostscript(), RenderType(), SetImageType(), ShadowImage(), ShearImage(), ShearRotateImage(), SimilarityImage(), ThumbnailImage(), TransparentPaintImage(), and TransparentPaintImageChroma().