⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 image.h

📁 下载来的一个看图软件的源代码
💻 H
📖 第 1 页 / 共 4 页
字号:
                             const Blob &colorProfile_ );    // Retrieve a named profile from the image. Valid names are:    // "8BIM", "8BIMTEXT", "APP1", "APP1JPEG", "ICC", "ICM", & "IPTC"    // or an existing user/format-defined profile name.    Blob            profile( const std::string name_ ) const;    // JPEG/MIFF/PNG compression level (default 75).    void            quality ( const unsigned int quality_ );    unsigned int    quality ( void ) const;        // Maximum number of colors to quantize to    void            quantizeColors ( const unsigned int colors_ );    unsigned int    quantizeColors ( void ) const;        // Colorspace to quantize in.    void            quantizeColorSpace ( const ColorspaceType colorSpace_ );    ColorspaceType  quantizeColorSpace ( void ) const;        // Dither image during quantization (default true).    void            quantizeDither ( const bool ditherFlag_ );    bool            quantizeDither ( void ) const;    // Quantization tree-depth    void            quantizeTreeDepth ( const unsigned int treeDepth_ );    unsigned int    quantizeTreeDepth ( void ) const;    // The type of rendering intent    void            renderingIntent ( const RenderingIntent renderingIntent_ );    RenderingIntent renderingIntent ( void ) const;    // Units of image resolution    void            resolutionUnits ( const ResolutionType resolutionUnits_ );    ResolutionType  resolutionUnits ( void ) const;    // The number of pixel rows in the image    unsigned int    rows ( void ) const;    // Image scene number    void            scene ( const unsigned int scene_ );    unsigned int    scene ( void ) const;    // Image signature.  Set force_ to true in order to re-calculate    // the signature regardless of whether the image data has been    // modified.    std::string     signature ( const bool force_ = false ) const;    // Width and height of a raw image     void            size ( const Geometry &geometry_ );    Geometry        size ( void ) const;    // Obtain image statistics. Statistics are normalized to the range    // of 0.0 to 1.0 and are output to the specified ImageStatistics    // structure.    void            statistics ( ImageStatistics *statistics ) const;    // enabled/disable stroke anti-aliasing    void            strokeAntiAlias( const bool flag_ );    bool            strokeAntiAlias( void ) const;    // Color to use when drawing object outlines    void            strokeColor ( const Color &strokeColor_ );    Color           strokeColor ( void ) const;    // Specify the pattern of dashes and gaps used to stroke    // paths. The strokeDashArray represents a zero-terminated array    // of numbers that specify the lengths of alternating dashes and    // gaps in pixels. If an odd number of values is provided, then    // the list of values is repeated to yield an even number of    // values.  A typical strokeDashArray_ array might contain the    // members 5 3 2 0, where the zero value indicates the end of the    // pattern array.    void            strokeDashArray ( const double* strokeDashArray_ );    const double*   strokeDashArray ( void ) const;    // While drawing using a dash pattern, specify distance into the    // dash pattern to start the dash (default 0).    void            strokeDashOffset ( const double strokeDashOffset_ );    double          strokeDashOffset ( void ) const;    // Specify the shape to be used at the end of open subpaths when    // they are stroked. Values of LineCap are UndefinedCap, ButtCap,    // RoundCap, and SquareCap.    void            strokeLineCap ( const LineCap lineCap_ );    LineCap         strokeLineCap ( void ) const;        // Specify the shape to be used at the corners of paths (or other    // vector shapes) when they are stroked. Values of LineJoin are    // UndefinedJoin, MiterJoin, RoundJoin, and BevelJoin.    void            strokeLineJoin ( const LineJoin lineJoin_ );    LineJoin        strokeLineJoin ( void ) const;    // Specify miter limit. When two line segments meet at a sharp    // angle and miter joins have been specified for 'lineJoin', it is    // possible for the miter to extend far beyond the thickness of    // the line stroking the path. The miterLimit' imposes a limit on    // the ratio of the miter length to the 'lineWidth'. The default    // value of this parameter is 4.    void            strokeMiterLimit ( const unsigned int miterLimit_ );    unsigned int    strokeMiterLimit ( void ) const;    // Pattern image to use while stroking object outlines.    void            strokePattern ( const Image &strokePattern_ );    Image           strokePattern ( void  ) const;    // Stroke width for drawing vector objects (default one)    void            strokeWidth ( const double strokeWidth_ );    double          strokeWidth ( void ) const;    // Subimage of an image sequence    void            subImage ( const unsigned int subImage_ );    unsigned int    subImage ( void ) const;    // Number of images relative to the base image    void            subRange ( const unsigned int subRange_ );    unsigned int    subRange ( void ) const;    // Annotation text encoding (e.g. "UTF-16")    void            textEncoding ( const std::string &encoding_ );    std::string     textEncoding ( void ) const;    // Tile name    void            tileName ( const std::string &tileName_ );    std::string     tileName ( void ) const;    // Number of colors in the image    unsigned long   totalColors ( void );    // Origin of coordinate system to use when annotating with text or drawing    void            transformOrigin ( const double x_,const  double y_ );    // Rotation to use when annotating with text or drawing    void            transformRotation ( const double angle_ );    // Reset transformation parameters to default    void            transformReset ( void );    // Scale to use when annotating with text or drawing    void            transformScale ( const double sx_, const double sy_ );    // Skew to use in X axis when annotating with text or drawing    void            transformSkewX ( const double skewx_ );    // Skew to use in Y axis when annotating with text or drawing    void            transformSkewY ( const double skewy_ );    // Image representation type (also see type operation)    //   Available types:    //    Bilevel        Grayscale       GrayscaleMatte    //    Palette        PaletteMatte    TrueColor    //    TrueColorMatte ColorSeparation ColorSeparationMatte    ImageType       type ( void ) const;    // Print detailed information about the image    void            verbose ( const bool verboseFlag_ );    bool            verbose ( void ) const;        // FlashPix viewing parameters    void            view ( const std::string &view_ );    std::string     view ( void ) const;    // X11 display to display to, obtain fonts from, or to capture    // image from    void            x11Display ( const std::string &display_ );    std::string     x11Display ( void ) const;    // x resolution of the image    double          xResolution ( void ) const;    // y resolution of the image    double          yResolution ( void ) const;    //////////////////////////////////////////////////////////////////////        //    // Low-level Pixel Access Routines    //    // Also see the Pixels class, which provides support for multiple    // cache views.    //    //////////////////////////////////////////////////////////////////////    // Transfers read-only pixels from the image to the pixel cache as    // defined by the specified region    const PixelPacket* getConstPixels ( const int x_, const int y_,                                        const unsigned int columns_,                                        const unsigned int rows_ ) const;    // Obtain image pixel indexes (valid for PseudoClass images)    IndexPacket* getIndexes ( void ) const;    // Obtain image pixel indexes (valid for PseudoClass images)    const IndexPacket* getConstIndexes ( void ) const;    // Transfers pixels from the image to the pixel cache as defined    // by the specified region. Modified pixels may be subsequently    // transferred back to the image via syncPixels.  This method is    // valid for DirectClass images.    PixelPacket* getPixels ( const int x_, const int y_,			     const unsigned int columns_,                             const unsigned int rows_ );    // Allocates a pixel cache region to store image pixels as defined    // by the region rectangle.  This area is subsequently transferred    // from the pixel cache to the image via syncPixels.    PixelPacket* setPixels ( const int x_, const int y_,			     const unsigned int columns_,                             const unsigned int rows_ );    // Transfers the image cache pixels to the image.    void syncPixels ( void );    // Transfers one or more pixel components from a buffer or file    // into the image pixel cache of an image.    // Used to support image decoders.    void readPixels ( const QuantumType quantum_,		      const unsigned char *source_ );        // Transfers one or more pixel components from the image pixel    // cache to a buffer or file.    // Used to support image encoders.    void writePixels ( const QuantumType quantum_,		       unsigned char *destination_ );    //////////////////////////////////////////////////////////////////////        //    // No user-serviceable parts beyond this point    //    //////////////////////////////////////////////////////////////////////    // Construct with MagickLib::Image and default options    Image ( MagickLib::Image* image_ );    // Retrieve Image*    MagickLib::Image*& image( void );    const MagickLib::Image* constImage( void ) const;    // Retrieve Options*    Options* options( void );    const Options*  constOptions( void ) const;    // Retrieve ImageInfo*    MagickLib::ImageInfo * imageInfo( void );    const MagickLib::ImageInfo * constImageInfo( void ) const;    // Retrieve QuantizeInfo*    MagickLib::QuantizeInfo * quantizeInfo( void );    const MagickLib::QuantizeInfo * constQuantizeInfo( void ) const;    // Replace current image (reference counted)    MagickLib::Image* replaceImage ( MagickLib::Image* replacement_ );    // Prepare to update image (copy if reference > 1)    void            modifyImage ( void );    // Test for ImageMagick error and throw exception if error    void            throwImageException( void ) const;    // Register image with image registry or obtain registration id    long            registerId( void );    // Unregister image from image registry    void            unregisterId( void) ;  private:    ImageRef *      _imgRef;  };} // end of namespace Magick//// Inlines////// Image//// Reduce noise in image using a noise peak elimination filterinline void Magick::Image::reduceNoise ( void ){  reduceNoise( 3.0 );}// Stroke width for drawing vector objects (default one)inline void Magick::Image::lineWidth ( const double lineWidth_ ){  strokeWidth( lineWidth_ );}inline double Magick::Image::lineWidth ( void ) const{  return strokeWidth( );}// Get image storage classinline Magick::ClassType Magick::Image::classType ( void ) const{  return static_cast<Magick::ClassType>(constImage()->storage_class);}// Get number of image columnsinline unsigned int Magick::Image::columns ( void ) const{  return constImage()->columns;}// Get number of image rowsinline unsigned int Magick::Image::rows ( void ) const{  return constImage()->rows;}#endif // Magick_Image_header

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -