_imgRef->increase();
}
+Magick::Image::Image(const Image &image_,const Geometry &geometry_)
+ : _imgRef(new ImageRef)
+{
+ const RectangleInfo
+ geometry=geometry_;
+
+ OffsetInfo
+ offset;
+
+ MagickCore::Image
+ *image;
+
+ GetPPException;
+ image=CloneImage(image_.constImage(),geometry_.width(),geometry_.height(),
+ MagickTrue,exceptionInfo);
+ replaceImage(image);
+ _imgRef->options(new Options(*image_.constOptions()));
+ offset.x=0;
+ offset.y=0;
+ (void) CopyImagePixels(image,image_.constImage(),&geometry,&offset,
+ exceptionInfo);
+ ThrowImageException;
+}
+
Magick::Image::Image(const size_t width_,const size_t height_,
const std::string &map_,const StorageType type_,const void *pixels_)
: _imgRef(new ImageRef)
Image(const Blob &blob_,const Geometry &size_);
// Construct Image of specified size and depth from in-memory BLOB
- Image(const Blob &blob_,const Geometry &size,const size_t depth);
+ Image(const Blob &blob_,const Geometry &size_,const size_t depth_);
// Construct Image of specified size, depth, and format from
// in-memory BLOB
- Image(const Blob &blob_,const Geometry &size,const size_t depth_,
+ Image(const Blob &blob_,const Geometry &size_,const size_t depth_,
const std::string &magick_);
// Construct Image of specified size, and format from in-memory BLOB
- Image(const Blob &blob_,const Geometry &size,const std::string &magick_);
+ Image(const Blob &blob_,const Geometry &size_,const std::string &magick_);
// Construct a blank image canvas of specified size and color
Image(const Geometry &size_,const Color &color_);
// Copy constructor
Image(const Image &image_);
+ // Copy constructor to copy part of the image
+ Image(const Image &image_,const Geometry &geometry_);
+
// Construct an image based on an array of raw pixels, of
// specified type and mapping, in memory
Image(const size_t width_,const size_t height_,const std::string &map_,