MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/cache-private.h"
#include "MagickCore/channel.h"
#include "MagickCore/colorspace-private.h"
#include "MagickCore/composite-private.h"
#include "MagickCore/enhance.h"
#include "MagickCore/image.h"
#include "MagickCore/list.h"
#include "MagickCore/log.h"
#include "MagickCore/monitor.h"
#include "MagickCore/monitor-private.h"
#include "MagickCore/option.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/resource_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/token.h"
#include "MagickCore/utility.h"
#include "MagickCore/version.h"
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 Image * | ChannelFxImage (const Image *image, const char *expression, ExceptionInfo *exception) |
MagickExport Image * | CombineImages (const Image *image, const ColorspaceType colorspace, ExceptionInfo *exception) |
MagickExport MagickBooleanType | GetImageAlphaChannel (const Image *image) |
MagickExport Image * | SeparateImage (const Image *image, const ChannelType channel_type, ExceptionInfo *exception) |
MagickExport Image * | SeparateImages (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) |
#define ChannelFxImageTag "ChannelFx/Image" |
#define CombineImageTag "Combine/Image" |
#define GetChannelBit | ( | mask, | |
bit | |||
) | (((size_t) (mask) >> (size_t) (bit)) & 0x01) |
#define SeparateImageTag "Separate/Image" |
enum ChannelFx |
MagickExport Image * ChannelFxImage | ( | const Image * | image, |
const char * | expression, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 193 of file channel.c.
References _Image::alpha_trait, AlphaPixelChannel, AppendImageToList(), AssignChannelOp, BlackPixelChannel, BlendPixelTrait, BluePixelChannel, ChannelFxImageTag, ChannelImage(), _Image::channels, ClampToQuantum(), CloneImage(), _Image::colorspace, CompositeMaskChannel, CompositeMaskPixelChannel, DestroyImageList(), DirectClass, ExchangeChannelOp, ExtractChannelOp, _Image::filename, GetFirstImageInList(), GetLastImageInList(), GetMagickModule, GetNextImageInList(), GetNextToken(), GetPixelChannels(), GRAYColorspace, GreenPixelChannel, IndexPixelChannel, IsEventLogging(), IsGrayColorspace(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickPathExtent, MagickTrue, MetaPixelChannel, OptionError, ParseChannelOption(), ParsePixelChannelOption(), QuantumRange, ReadMaskChannel, ReadMaskPixelChannel, RedPixelChannel, SetImageColorspace(), SetImageProgress(), SetImageStorageClass(), SetPixelChannelMask(), SetPixelMetaChannels(), _ExceptionInfo::signature, _Image::signature, sRGBColorspace, StringToDoubleInterval(), ThrowMagickException(), TraceEvent, TransferChannelOp, UndefinedChannel, UndefinedColorspace, WriteMaskChannel, and WriteMaskPixelChannel.
|
static |
Definition at line 115 of file channel.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), AssignChannelOp, _Image::columns, DestroyCacheView(), GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetPixelChannel(), GetPixelChannels(), GetPixelChannelTraits(), magick_restrict, MagickFalse, MagickMin, MagickTrue, _Image::rows, SetPixelChannel(), SyncCacheViewAuthenticPixels(), and UndefinedPixelTrait.
Referenced by ChannelFxImage().
MagickExport Image * CombineImages | ( | const Image * | image, |
const ColorspaceType | colorspace, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 490 of file channel.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), _Image::alpha_trait, BlendPixelTrait, CloneImage(), CMYKColorspace, _Image::colorspace, _Image::columns, CombineImageTag, DestroyCacheView(), DestroyImage(), DirectClass, _Image::filename, _Image::gamma, GetCacheViewAuthenticPixels(), GetCacheViewVirtualPixels(), GetImageListLength(), GetMagickModule, GetNextImageInList(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelIntensity(), GRAYColorspace, IsEventLogging(), LinearGRAYColorspace, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickEpsilon, MagickFalse, MagickTrue, _Image::progress_monitor, RGBColorspace, _Image::rows, SetImageColorspace(), SetImageProgress(), SetImageStorageClass(), _ExceptionInfo::signature, _Image::signature, sRGBColorspace, SyncCacheViewAuthenticPixels(), TraceEvent, UndefinedColorspace, and UndefinedPixelTrait.
|
inlinestatic |
Definition at line 911 of file channel.c.
References AlphaPixelChannel, _PixelInfo::black, BlackPixelChannel, _PixelInfo::blue, BluePixelChannel, ClampToQuantum(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), _PixelInfo::green, GreenPixelChannel, MagickOver_(), PerceptibleReciprocal(), QuantumRange, QuantumScale, _PixelInfo::red, RedPixelChannel, and UndefinedPixelTrait.
Referenced by SetImageAlphaChannel().
MagickExport MagickBooleanType GetImageAlphaChannel | ( | const Image * | image | ) |
Definition at line 670 of file channel.c.
References _Image::alpha_trait, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, _Image::signature, TraceEvent, and UndefinedPixelTrait.
MagickExport Image * SeparateImage | ( | const Image * | image, |
const ChannelType | channel_type, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 707 of file channel.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), _Image::alpha_trait, CloneImage(), _Image::columns, DefaultChannels, DestroyCacheView(), DestroyImage(), DirectClass, _Image::filename, _Image::gamma, GetCacheViewVirtualPixels(), GetChannelBit, GetMagickModule, GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GRAYColorspace, GrayPixelChannel, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), _Image::rows, SeparateImageTag, SetImageChannelMask(), SetImageColorspace(), SetImageProgress(), SetImageStorageClass(), SetPixelChannel(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, and UndefinedPixelTrait.
Referenced by DrawClippingMask(), DrawCompositeMask(), and SeparateImages().
MagickExport Image * SeparateImages | ( | const Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 848 of file channel.c.
References AppendImageToList(), _Image::filename, GetMagickModule, GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, NewImageList(), SeparateImage(), _Image::signature, TraceEvent, UndefinedChannel, UndefinedPixelTrait, and UpdatePixelTrait.
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().