MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
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

◆ ChannelFxImageTag

#define ChannelFxImageTag   "ChannelFx/Image"

◆ CombineImageTag

#define CombineImageTag   "Combine/Image"

◆ GetChannelBit

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

◆ SeparateImageTag

#define SeparateImageTag   "Separate/Image"

Enumeration Type Documentation

◆ ChannelFx

enum ChannelFx
Enumerator
ExtractChannelOp 
AssignChannelOp 
ExchangeChannelOp 
TransferChannelOp 

Definition at line 107 of file channel.c.

Function Documentation

◆ ChannelFxImage()

◆ ChannelImage()

◆ CombineImages()

◆ FlattenPixelInfo()

static void FlattenPixelInfo ( const Image image,
const PixelInfo p,
const double  alpha,
const Quantum q,
const double  beta,
Quantum composite 
)
inlinestatic

◆ GetImageAlphaChannel()

◆ SeparateImage()

◆ SeparateImages()

◆ SetImageAlphaChannel()

MagickExport MagickBooleanType SetImageAlphaChannel ( Image image,
const AlphaChannelOption  alpha_type,
ExceptionInfo exception 
)

Definition at line 972 of file channel.c.

References AcquireAuthenticCacheView(), ActivateAlphaChannel, _PixelInfo::alpha, _Image::alpha_trait, _PixelInfo::alpha_trait, AlphaCompositeOp, AlphaPixelChannel, AssociateAlphaChannel, _Image::background_color, BackgroundAlphaChannel, BlendPixelTrait, _Image::channel_mask, ClampToQuantum(), _Image::columns, CompositeImage(), ConformPixelInfo(), CopyAlphaChannel, CopyPixelTrait, DeactivateAlphaChannel, DestroyCacheView(), DirectClass, DisassociateAlphaChannel, DiscreteAlphaChannel, ExtractAlphaChannel, FlattenPixelInfo(), GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelAlpha(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelIntensity(), IntensityCompositeOp, IsEventLogging(), 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 BlendConvolveImage(), CannyEdgeImage(), ClearBounds(), ClutImage(), CompareImages(), CompositeImage(), DistortResizeImage(), DrawPrimitive(), HaldClutImage(), ImplodeImage(), MorphologyApply(), PolaroidImage(), RenderMVGContent(), RenderPostscript(), SetImageBackgroundColor(), SetImageType(), ShadowImage(), ShearImage(), ShearRotateImage(), SimilarityImage(), SwirlImage(), TransparentPaintImage(), and TransparentPaintImageChroma().