📄 include.h
字号:
// This may look like C code, but it is really -*- C++ -*-//// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002//// Inclusion of GraphicsMagick headers (with namespace magic)#ifndef Magick_Include_header#define Magick_Include_header#if !defined(_MAGICK_CONFIG_H)# define _MAGICK_CONFIG_H# if !defined(vms) && !defined(macintosh)# include "magick/magick_config.h"# else# include "magick_config.h"# endif# undef inline // Remove possible definition from config.h# undef class#endif#include <stdio.h>#include <stdarg.h>#include <time.h>#if defined(HAVE_SYS_TYPES_H)# include <sys/types.h>#endif#if defined(__BORLANDC__)# include <vcl.h> /* Borland C++ Builder 4.0 requirement */#endif // defined(__BORLANDC__)//// Include GraphicsMagick headers into namespace "MagickLib". If// MAGICK_IMPLEMENTATION is defined, include GraphicsMagick development// headers. This scheme minimizes the possibility of conflict with// user code.//namespace MagickLib{#include <magick/api.h>#undef inline // Remove possible definition from config.h#undef class}//// Provide appropriate DLL imports/exports for Visual C++,// Borland C++Builder and MinGW builds//#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)# define MagickCplusPlusDLLSupported#endif#if defined(MagickCplusPlusDLLSupported)# if defined(_MT) && defined(_DLL) && !defined(_LIB)# define MagickDLLBuild# if defined(_VISUALC_)# pragma warning( disable: 4273 ) /* Disable the stupid dll linkage warnings */# pragma warning( disable: 4251 )# endif# if !defined(MAGICK_IMPLEMENTATION)# define MagickDLLDecl __declspec(dllimport)# define MagickDLLDeclExtern extern __declspec(dllimport)# if defined(_VISUALC_)# pragma message( "Magick++ lib DLL import" )# endif# else# if defined(__BORLANDC__)# define MagickDLLDecl __declspec(dllexport)# define MagickDLLDeclExtern __declspec(dllexport)# pragma message( "BCBMagick++ lib DLL export" )# else# define MagickDLLDecl __declspec(dllexport)# define MagickDLLDeclExtern extern __declspec(dllexport)# endif# if defined(_VISUALC_)# pragma message( "Magick++ lib DLL export" )# endif# endif# else# define MagickDLLDecl# define MagickDLLDeclExtern# if defined(_VISUALC_)# pragma message( "Magick++ lib static interface" )# endif# endif#else# define MagickDLLDecl# define MagickDLLDeclExtern#endif//// Import GraphicsMagick symbols and types which are used as part of the// Magick++ API definition into namespace "Magick".//namespace Magick{ // The datatype for an RGB component using MagickLib::Quantum; // Image class types using MagickLib::ClassType; using MagickLib::UndefinedClass; using MagickLib::DirectClass; using MagickLib::PseudoClass; // Channel types using MagickLib::ChannelType; using MagickLib::UndefinedChannel; using MagickLib::RedChannel; using MagickLib::CyanChannel; using MagickLib::GreenChannel; using MagickLib::MagentaChannel; using MagickLib::BlueChannel; using MagickLib::YellowChannel; using MagickLib::OpacityChannel; using MagickLib::BlackChannel; using MagickLib::MatteChannel; // Color-space types using MagickLib::ColorspaceType; using MagickLib::UndefinedColorspace; using MagickLib::RGBColorspace; using MagickLib::GRAYColorspace; using MagickLib::TransparentColorspace; using MagickLib::OHTAColorspace; using MagickLib::XYZColorspace; using MagickLib::YCbCrColorspace; using MagickLib::YCCColorspace; using MagickLib::YIQColorspace; using MagickLib::YPbPrColorspace; using MagickLib::YUVColorspace; using MagickLib::CMYKColorspace; using MagickLib::sRGBColorspace; using MagickLib::HSLColorspace; using MagickLib::HWBColorspace; using MagickLib::LABColorspace; using MagickLib::CineonLogRGBColorspace; using MagickLib::Rec601LumaColorspace; using MagickLib::Rec709LumaColorspace; using MagickLib::Rec709YCbCrColorspace; // Composition operations using MagickLib::AddCompositeOp; using MagickLib::AtopCompositeOp; using MagickLib::BumpmapCompositeOp; using MagickLib::ClearCompositeOp; using MagickLib::ColorizeCompositeOp; using MagickLib::CompositeOperator; using MagickLib::CopyBlueCompositeOp; using MagickLib::CopyCompositeOp; using MagickLib::CopyGreenCompositeOp; using MagickLib::CopyOpacityCompositeOp; using MagickLib::CopyRedCompositeOp; using MagickLib::DarkenCompositeOp; using MagickLib::DifferenceCompositeOp; using MagickLib::DisplaceCompositeOp; using MagickLib::DissolveCompositeOp; using MagickLib::HueCompositeOp; using MagickLib::InCompositeOp; using MagickLib::LightenCompositeOp; using MagickLib::LuminizeCompositeOp; using MagickLib::MinusCompositeOp; using MagickLib::ModulateCompositeOp; using MagickLib::MultiplyCompositeOp; using MagickLib::NoCompositeOp; using MagickLib::OutCompositeOp; using MagickLib::OverCompositeOp; using MagickLib::OverlayCompositeOp; using MagickLib::PlusCompositeOp; using MagickLib::SaturateCompositeOp; using MagickLib::ScreenCompositeOp; using MagickLib::SubtractCompositeOp; using MagickLib::ThresholdCompositeOp; using MagickLib::UndefinedCompositeOp; using MagickLib::XorCompositeOp; using MagickLib::CopyCyanCompositeOp; using MagickLib::CopyMagentaCompositeOp; using MagickLib::CopyYellowCompositeOp; using MagickLib::CopyBlackCompositeOp; // Compression algorithms using MagickLib::CompressionType; using MagickLib::UndefinedCompression; using MagickLib::NoCompression; using MagickLib::BZipCompression; using MagickLib::FaxCompression; using MagickLib::Group4Compression; using MagickLib::JPEGCompression; using MagickLib::LZWCompression; using MagickLib::RLECompression; using MagickLib::ZipCompression; using MagickLib::DisposeType; using MagickLib::UndefinedDispose; using MagickLib::NoneDispose; using MagickLib::BackgroundDispose; using MagickLib::PreviousDispose; // Endian options using MagickLib::EndianType; using MagickLib::UndefinedEndian; using MagickLib::LSBEndian; using MagickLib::MSBEndian; // Fill rules using MagickLib::FillRule; using MagickLib::UndefinedRule; using MagickLib::EvenOddRule; using MagickLib::NonZeroRule; // Filter types using MagickLib::FilterTypes; using MagickLib::UndefinedFilter; using MagickLib::PointFilter; using MagickLib::BoxFilter; using MagickLib::TriangleFilter; using MagickLib::HermiteFilter; using MagickLib::HanningFilter; using MagickLib::HammingFilter; using MagickLib::BlackmanFilter; using MagickLib::GaussianFilter; using MagickLib::QuadraticFilter; using MagickLib::CubicFilter; using MagickLib::CatromFilter; using MagickLib::MitchellFilter; using MagickLib::LanczosFilter; using MagickLib::BesselFilter; using MagickLib::SincFilter; // Bit gravity using MagickLib::GravityType; using MagickLib::ForgetGravity; using MagickLib::NorthWestGravity; using MagickLib::NorthGravity; using MagickLib::NorthEastGravity; using MagickLib::WestGravity; using MagickLib::CenterGravity; using MagickLib::EastGravity; using MagickLib::SouthWestGravity; using MagickLib::SouthGravity; using MagickLib::SouthEastGravity; using MagickLib::StaticGravity; // Image types using MagickLib::ImageType; using MagickLib::UndefinedType; using MagickLib::BilevelType; using MagickLib::GrayscaleType; using MagickLib::GrayscaleMatteType; using MagickLib::PaletteType; using MagickLib::PaletteMatteType; using MagickLib::TrueColorType; using MagickLib::TrueColorMatteType; using MagickLib::ColorSeparationType; using MagickLib::ColorSeparationMatteType; using MagickLib::OptimizeType; // Interlace types using MagickLib::InterlaceType; using MagickLib::UndefinedInterlace; using MagickLib::NoInterlace; using MagickLib::LineInterlace; using MagickLib::PlaneInterlace; using MagickLib::PartitionInterlace; // Line cap types using MagickLib::LineCap; using MagickLib::UndefinedCap; using MagickLib::ButtCap; using MagickLib::RoundCap; using MagickLib::SquareCap; // Line join types using MagickLib::LineJoin; using MagickLib::UndefinedJoin; using MagickLib::MiterJoin; using MagickLib::RoundJoin; using MagickLib::BevelJoin; // Noise types using MagickLib::NoiseType; using MagickLib::UniformNoise; using MagickLib::GaussianNoise; using MagickLib::MultiplicativeGaussianNoise; using MagickLib::ImpulseNoise; using MagickLib::LaplacianNoise; using MagickLib::PoissonNoise; // Orientation types using MagickLib::OrientationType; using MagickLib::UndefinedOrientation; using MagickLib::TopLeftOrientation; using MagickLib::TopRightOrientation; using MagickLib::BottomRightOrientation; using MagickLib::BottomLeftOrientation; using MagickLib::LeftTopOrientation; using MagickLib::RightTopOrientation; using MagickLib::RightBottomOrientation; using MagickLib::LeftBottomOrientation; // Paint methods using MagickLib::PaintMethod; using MagickLib::PointMethod; using MagickLib::ReplaceMethod; using MagickLib::FloodfillMethod; using MagickLib::FillToBorderMethod; using MagickLib::ResetMethod; // Arithmetic and bitwise operators using MagickLib::AddQuantumOp; using MagickLib::AndQuantumOp; using MagickLib::DivideQuantumOp; using MagickLib::LShiftQuantumOp; using MagickLib::MultiplyQuantumOp; using MagickLib::OrQuantumOp; using MagickLib::RShiftQuantumOp; using MagickLib::SubtractQuantumOp; using MagickLib::XorQuantumOp; using MagickLib::QuantumOperator; // Preview types. Not currently used by Magick++ using MagickLib::PreviewType; using MagickLib::UndefinedPreview; using MagickLib::RotatePreview; using MagickLib::ShearPreview; using MagickLib::RollPreview; using MagickLib::HuePreview; using MagickLib::SaturationPreview; using MagickLib::BrightnessPreview; using MagickLib::GammaPreview; using MagickLib::SpiffPreview; using MagickLib::DullPreview; using MagickLib::GrayscalePreview; using MagickLib::QuantizePreview; using MagickLib::DespecklePreview; using MagickLib::ReduceNoisePreview; using MagickLib::AddNoisePreview; using MagickLib::SharpenPreview; using MagickLib::BlurPreview; using MagickLib::ThresholdPreview; using MagickLib::EdgeDetectPreview; using MagickLib::SpreadPreview; using MagickLib::SolarizePreview; using MagickLib::ShadePreview; using MagickLib::RaisePreview; using MagickLib::SegmentPreview; using MagickLib::SwirlPreview; using MagickLib::ImplodePreview; using MagickLib::WavePreview; using MagickLib::OilPaintPreview; using MagickLib::CharcoalDrawingPreview; using MagickLib::JPEGPreview; // Quantum types using MagickLib::QuantumType; using MagickLib::IndexQuantum; using MagickLib::GrayQuantum; using MagickLib::IndexAlphaQuantum; using MagickLib::GrayAlphaQuantum; using MagickLib::RedQuantum; using MagickLib::CyanQuantum; using MagickLib::GreenQuantum; using MagickLib::YellowQuantum; using MagickLib::BlueQuantum; using MagickLib::MagentaQuantum; using MagickLib::AlphaQuantum; using MagickLib::BlackQuantum; using MagickLib::RGBQuantum; using MagickLib::RGBAQuantum; using MagickLib::CMYKQuantum; using MagickLib::CIEYQuantum; using MagickLib::CIEXYZQuantum; // Quantum sample types using MagickLib::QuantumSampleType; using MagickLib::UndefinedQuantumSampleType; using MagickLib::UnsignedQuantumSampleType; using MagickLib::FloatQuantumSampleType; // Rendering intents using MagickLib::RenderingIntent; using MagickLib::UndefinedIntent; using MagickLib::SaturationIntent; using MagickLib::PerceptualIntent; using MagickLib::AbsoluteIntent; using MagickLib::RelativeIntent; // Resolution units using MagickLib::ResolutionType; using MagickLib::UndefinedResolution; using MagickLib::PixelsPerInchResolution; using MagickLib::PixelsPerCentimeterResolution; // PixelPacket structure using MagickLib::PixelPacket; // IndexPacket type
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -