This source file includes following definitions.
- y
- columns
- rows
#if !defined(Magick_Pixels_header)
#define Magick_Pixels_header
#include "Magick++/Include.h"
#include "Magick++/Color.h"
#include "Magick++/Image.h"
namespace Magick
{
class MagickPPExport Pixels
{
public:
Pixels(Magick::Image &image_);
~Pixels(void);
PixelPacket *get(const ::ssize_t x_, const ::ssize_t y_,
const size_t columns_,const size_t rows_ );
const PixelPacket *getConst(const ::ssize_t x_,const ::ssize_t y_,
const size_t columns_,const size_t rows_);
PixelPacket *set(const ::ssize_t x_,const ::ssize_t y_,
const size_t columns_,const size_t rows_);
void sync(void);
size_t columns(void) const;
IndexPacket *indexes(void);
size_t rows (void) const;
::ssize_t x(void) const;
::ssize_t y(void) const;
private:
Pixels(const Pixels& pixels_);
const Pixels& operator=(const Pixels& pixels_);
Magick::Image _image;
MagickCore::CacheView *_view;
::ssize_t _x;
::ssize_t _y;
size_t _columns;
size_t _rows;
};
class MagickPPExport PixelData
{
public:
PixelData(Magick::Image &image_,std::string map_,const StorageType type_);
PixelData(Magick::Image &image_,const ::ssize_t x_,const ::ssize_t y_,
const size_t width_,const size_t height_,std::string map_,
const StorageType type_);
~PixelData(void);
const void *data(void) const;
::ssize_t length(void) const;
::ssize_t size(void) const;
private:
PixelData(const PixelData& pixels_);
const PixelData& operator=(const PixelData& pixels_);
void init(Magick::Image &image_,const ::ssize_t x_,const ::ssize_t y_,
const size_t width_,const size_t height_,std::string map_,
const StorageType type_);
void relinquish(void) throw();
void *_data;
::ssize_t _length;
::ssize_t _size;
};
}
inline ::ssize_t Magick::Pixels::x(void) const
{
return _x;
}
inline ::ssize_t Magick::Pixels::y(void) const
{
return _y;
}
inline size_t Magick::Pixels::columns(void) const
{
return _columns;
}
inline size_t Magick::Pixels::rows(void) const
{
return _rows;
}
#endif