9 #define MAGICKCORE_IMPLEMENTATION 1 10 #define MAGICK_PLUSPLUS_IMPLEMENTATION 1 27 #define AbsoluteValue(x) ((x) < 0 ? -(x) : (x)) 28 #define MagickPI 3.14159265358979323846264338327950288419716939937510 29 #define DegreesToRadians(x) (MagickPI*(x)/180.0) 30 #define ThrowImageException ThrowPPException(quiet()) 40 return((left_.
rows() == right_.
rows()) &&
48 return(!(left_ == right_));
54 return(!(left_ < right_) && (left_ != right_));
68 return((left_ > right_) || (left_ == right_));
74 return((left_ < right_) || ( left_ == right_));
126 read(blob_,size_,depth_);
138 const size_t depth_,
const std::string &magick_)
145 read(blob_,size_,depth_,magick_);
157 const std::string &magick_)
164 read(blob_,size_,magick_);
179 std::string imageSpec(
"xc:");
201 : _imgRef(image_._imgRef)
220 MagickTrue,exceptionInfo);
231 const std::string &map_,
const StorageType type_,
const void *pixels_)
237 read(width_,height_,map_.c_str(),type_,pixels_);
270 if (_imgRef->decrease() == 0)
285 if (_imgRef->decrease() == 0)
289 _imgRef=image_._imgRef;
297 options()->adjoin(flag_);
302 return(constOptions()->adjoin());
314 if (
bool(alphaFlag_) !=
bool(constImage()->alpha_trait))
315 SetImageAlpha(image(),OpaqueAlpha,exceptionInfo);
318 image()->alpha_trait=alphaFlag_ ? BlendPixelTrait : UndefinedPixelTrait;
323 if (constImage()->alpha_trait == BlendPixelTrait)
335 image()->matte_color=matteColor_;
336 options()->matteColor(matteColor_);
341 Color tmpColor(
"#BDBDBD");
342 image()->matte_color=tmpColor;
343 options()->matteColor(tmpColor);
349 return(
Color(constImage()->matte_color));
355 image()->delay=delay_;
360 return(constImage()->delay);
366 image()->iterations=iterations_;
371 return(constImage()->iterations);
378 if (backgroundColor_.
isValid())
379 image()->background_color=backgroundColor_;
381 image()->background_color=
Color();
383 options()->backgroundColor(backgroundColor_);
388 return(constOptions()->backgroundColor());
394 options()->backgroundTexture(backgroundTexture_);
399 return(constOptions()->backgroundTexture());
404 return(constImage()->magick_columns);
409 return(std::string(constImage()->magick_filename));
414 return(constImage()->magick_rows);
419 image()->black_point_compensation=(MagickBooleanType) flag_;
424 return(static_cast<bool>(constImage()->black_point_compensation));
432 image()->border_color=borderColor_;
434 image()->border_color=
Color();
436 options()->borderColor(borderColor_);
441 return(constOptions()->borderColor());
450 bbox=GetImageBoundingBox(constImage(),exceptionInfo);
458 options()->boxColor(boxColor_);
463 return(constOptions()->boxColor());
472 SetImageDepth(image(),depth_,exceptionInfo);
484 channel_depth=GetImageDepth(constImage(),exceptionInfo);
487 return(channel_depth);
492 return(constImage()->number_channels);
497 if (classType() == PseudoClass && class_ == DirectClass)
503 SyncImage(image(),exceptionInfo);
505 image()->colormap=(PixelInfo *)RelinquishMagickMemory(image()->colormap);
506 image()->storage_class=
static_cast<MagickCore::ClassType
>(DirectClass);
510 if (classType() == DirectClass && class_ == PseudoClass)
514 quantizeColors(MaxColormapSize);
516 image()->storage_class=
static_cast<MagickCore::ClassType
>(PseudoClass);
522 return static_cast<Magick::ClassType
>(constImage()->storage_class);
529 options()->colorFuzz(fuzz_);
534 return(constOptions()->colorFuzz());
539 if (entries_ >MaxColormapSize)
541 "Colormap entries must not exceed MaxColormapSize");
545 (void) AcquireImageColormap(image(),entries_,exceptionInfo);
551 if (!constImage()->colormap)
553 "Image does not contain a colormap");
555 return(constImage()->colors);
560 if (image()->colorspace == colorSpace_)
565 TransformImageColorspace(image(),colorSpace_,exceptionInfo);
571 return (constImage()->colorspace);
578 SetImageColorspace(image(),colorSpace_,exceptionInfo);
580 options()->colorspaceType(colorSpace_);
585 return(constOptions()->colorspaceType());
590 return(constImage()->columns);
597 SetImageProperty(image(),
"Comment",NULL,exceptionInfo);
598 if (comment_.length() > 0)
599 SetImageProperty(image(),
"Comment",comment_.c_str(),exceptionInfo);
609 value=GetImageProperty(constImage(),
"Comment",exceptionInfo);
613 return(std::string(value));
615 return(std::string());
620 image()->compose=compose_;
625 return(constImage()->compose);
631 image()->compression=compressType_;
632 options()->compressType(compressType_);
637 return(constImage()->compression);
643 options()->debug(flag_);
648 return(constOptions()->debug());
654 options()->density(density_);
657 image()->resolution.x=density_.
x();
658 if (density_.
y() != 0.0)
659 image()->resolution.y=density_.
y();
661 image()->resolution.y=density_.
x();
666 image()->resolution.x=0.0;
667 image()->resolution.y=0.0;
679 if (constImage()->resolution.x > 0.0)
680 x_resolution=constImage()->resolution.
x;
682 if (constImage()->resolution.y > 0.0)
683 y_resolution=constImage()->resolution.y;
685 return(
Point(x_resolution,y_resolution));
688 return(constOptions()->density());
694 image()->depth=depth_;
695 options()->depth(depth_);
700 return(constImage()->depth);
705 if (constImage()->directory)
706 return(std::string(constImage()->directory));
710 "Image does not contain a directory");
712 return(std::string());
718 options()->endian(endian_);
719 image()->endian=endian_;
724 return(constImage()->endian);
731 if (exifProfile_.
data() != 0)
736 exif_profile=AcquireStringInfo(exifProfile_.
length());
737 SetStringInfoDatum(exif_profile,(
unsigned char *) exifProfile_.
data());
739 (void) SetImageProfile(image(),
"exif",exif_profile,exceptionInfo);
740 exif_profile=DestroyStringInfo(exif_profile);
750 exif_profile=GetImageProfile(constImage(),
"exif");
751 if (exif_profile == (StringInfo *) NULL)
753 return(
Blob(GetStringInfoDatum(exif_profile),
754 GetStringInfoLength(exif_profile)));
764 max_length=
sizeof(image()->filename)-1;
765 fileName_.copy(image()->filename,max_length);
766 if ((ssize_t) fileName_.length() > max_length)
767 image()->filename[max_length]=0;
769 image()->filename[fileName_.length()]=0;
771 options()->fileName(fileName_);
776 return(constOptions()->fileName());
781 return(GetBlobSize(constImage()));
787 options()->fillColor(fillColor_);
792 return(constOptions()->fillColor());
798 options()->fillRule(fillRule_);
803 return constOptions()->fillRule();
810 options()->fillPattern(fillPattern_.
constImage());
812 options()->fillPattern(static_cast<MagickCore::Image*>(NULL));
832 image=CloneImage(tmpTexture,0,0,MagickTrue,exceptionInfo);
842 image()->filter=filterType_;
847 return(constImage()->filter);
853 options()->font(font_);
858 return(constOptions()->font());
864 options()->fontFamily(family_);
869 return(constOptions()->fontFamily());
875 options()->fontPointsize(pointSize_);
880 return(constOptions()->fontPointsize());
886 options()->fontStyle(pointSize_);
891 return(constOptions()->fontStyle());
897 options()->fontWeight(weight_);
902 return(constOptions()->fontWeight());
911 magick_info=GetMagickInfo(constImage()->magick,exceptionInfo);
914 if ((magick_info != 0) && (*magick_info->description !=
'\0'))
915 return(std::string(magick_info->description));
919 "Unrecognized image magick type");
921 return(std::string());
934 text=InterpretImageProperties(imageInfo(),image(),expression.c_str(),
936 if (text != (
char *) NULL)
938 text_string=std::string(text);
939 text=DestroyString(text);
947 return(constImage()->gamma);
952 if (constImage()->geometry)
953 return Geometry(constImage()->geometry);
957 "Image does not contain a geometry");
963 const MagickCore::DisposeType disposeMethod_)
966 image()->dispose=disposeMethod_;
971 return(constImage()->dispose);
976 if (GetPixelChannelTraits(constImage(),channel) == UndefinedPixelTrait)
979 if (channel == GreenPixelChannel || channel == BluePixelChannel)
980 return (GetPixelChannelOffset(constImage(),channel) == (ssize_t)channel);
991 artifact(
"compare:highlight-color",value);
996 profile(
"icc",colorProfile_);
1004 color_profile=GetImageProfile(constImage(),
"icc");
1005 if (color_profile == (StringInfo *) NULL)
1007 return(
Blob(GetStringInfoDatum(color_profile),GetStringInfoLength(
1014 image()->interlace=interlace_;
1015 options()->interlaceType(interlace_);
1020 return(constImage()->interlace);
1026 image()->interpolate=interpolate_;
1031 return constImage()->interpolate;
1037 if (iptcProfile_.
data() != 0)
1042 iptc_profile=AcquireStringInfo(iptcProfile_.
length());
1043 SetStringInfoDatum(iptc_profile,(
unsigned char *) iptcProfile_.
data());
1045 (void) SetImageProfile(image(),
"iptc",iptc_profile,exceptionInfo);
1046 iptc_profile=DestroyStringInfo(iptc_profile);
1056 iptc_profile=GetImageProfile(constImage(),
"iptc");
1057 if (iptc_profile == (StringInfo *) NULL)
1059 return(
Blob(GetStringInfoDatum(iptc_profile),GetStringInfoLength(
1069 result=IsImageOpaque(constImage(),exceptionInfo);
1071 return(result != MagickFalse ?
true :
false);
1081 else if (!isValid())
1092 return rows() && columns();
1099 (void) SetImageProperty(image(),
"Label",NULL,exceptionInfo);
1100 if (label_.length() > 0)
1101 (
void) SetImageProperty(image(),
"Label",label_.c_str(),exceptionInfo);
1111 value=GetImageProperty(constImage(),
"Label",exceptionInfo);
1115 return(std::string(value));
1117 return(std::string());
1126 artifact(
"compare:lowlight-color",value);
1136 length=
sizeof(image()->magick)-1;
1137 if (magick_.length() < length)
1138 length=magick_.length();
1140 if (!magick_.empty())
1141 magick_.copy(image()->magick,length);
1142 image()->magick[length]=0;
1144 options()->magick(magick_);
1149 if (*(constImage()->magick) !=
'\0')
1150 return(std::string(constImage()->magick));
1152 return(constOptions()->magick());
1161 artifact(
"compare:masklight-color",value);
1166 return(constImage()->error.mean_error_per_pixel);
1173 SetImageDepth(image(),depth_,exceptionInfo);
1175 options()->depth(depth_);
1184 depth=GetImageDepth(constImage(),exceptionInfo);
1192 options()->monochrome(monochromeFlag_);
1197 return(constOptions()->monochrome());
1202 if (constImage()->montage)
1207 "Image does not contain a montage");
1214 return(constImage()->error.normalized_maximum_error);
1219 return(constImage()->error.normalized_mean_error);
1225 image()->orientation=orientation_;
1230 return(constImage()->orientation);
1236 options()->page(pageSize_);
1237 image()->page=pageSize_;
1242 return(
Geometry(constImage()->page.width,constImage()->page.height,
1243 constImage()->page.x,constImage()->page.y));
1249 image()->quality=quality_;
1250 options()->quality(quality_);
1255 return(constImage()->quality);
1261 options()->quantizeColors(colors_);
1266 return(constOptions()->quantizeColors());
1270 const Magick::ColorspaceType colorSpace_)
1273 options()->quantizeColorSpace(colorSpace_);
1278 return(constOptions()->quantizeColorSpace());
1284 options()->quantizeDither(ditherFlag_);
1289 return(constOptions()->quantizeDither());
1295 options()->quantizeDitherMethod(ditherMethod_);
1300 return(constOptions()->quantizeDitherMethod());
1306 options()->quantizeTreeDepth(treeDepth_);
1311 return(constOptions()->quantizeTreeDepth());
1317 options()->quiet(quiet_);
1322 return(constOptions()->quiet());
1326 const Magick::RenderingIntent renderingIntent_)
1329 image()->rendering_intent=renderingIntent_;
1334 return(static_cast<Magick::RenderingIntent>(constImage()->rendering_intent));
1338 const Magick::ResolutionType resolutionUnits_)
1341 image()->units=resolutionUnits_;
1342 options()->resolutionUnits(resolutionUnits_);
1347 return(static_cast<Magick::ResolutionType>(constImage()->units));
1352 return(constImage()->rows);
1358 image()->scene=scene_;
1363 return(constImage()->scene);
1369 options()->size(geometry_);
1370 image()->rows=geometry_.
height();
1371 image()->columns=geometry_.
width();
1382 options()->strokeAntiAlias(flag_);
1387 return(constOptions()->strokeAntiAlias());
1396 options()->strokeColor(strokeColor_);
1398 artifact(
"stroke",value);
1403 return(constOptions()->strokeColor());
1409 options()->strokeDashArray(strokeDashArray_);
1414 return(constOptions()->strokeDashArray());
1420 options()->strokeDashOffset(strokeDashOffset_);
1425 return(constOptions()->strokeDashOffset());
1431 options()->strokeLineCap(lineCap_);
1436 return(constOptions()->strokeLineCap());
1442 options()->strokeLineJoin(lineJoin_);
1447 return(constOptions()->strokeLineJoin());
1453 options()->strokeMiterLimit(strokeMiterLimit_);
1458 return(constOptions()->strokeMiterLimit());
1465 options()->strokePattern(strokePattern_.
constImage());
1467 options()->strokePattern(static_cast<MagickCore::Image*>(NULL));
1487 image=CloneImage(tmpTexture,0,0,MagickTrue,exceptionInfo);
1497 value[MagickPathExtent];
1500 options()->strokeWidth(strokeWidth_);
1501 FormatLocaleString(value,MagickPathExtent,
"%.20g",strokeWidth_);
1502 (void) SetImageArtifact(image(),
"strokewidth",value);
1507 return(constOptions()->strokeWidth());
1513 options()->subImage(subImage_);
1518 return(constOptions()->subImage());
1524 options()->subRange(subRange_);
1529 return(constOptions()->subRange());
1535 options()->textAntiAlias(flag_);
1540 return(constOptions()->textAntiAlias());
1546 options()->textDirection(direction_);
1551 return(constOptions()->textDirection());
1557 options()->textEncoding(encoding_);
1562 return(constOptions()->textEncoding());
1568 options()->textGravity(gravity_);
1573 return(constOptions()->textGravity());
1579 options()->textInterlineSpacing(spacing_);
1584 return(constOptions()->textInterlineSpacing());
1590 options()->textInterwordSpacing(spacing_);
1595 return(constOptions()->textInterwordSpacing());
1601 options()->textKerning(kerning_);
1606 return(constOptions()->textKerning());
1612 options()->textUnderColor(underColor_);
1617 return(constOptions()->textUnderColor());
1626 colors=GetNumberColors(constImage(),(FILE *) NULL,exceptionInfo);
1634 options()->transformRotation(angle_);
1640 options()->transformSkewX(skewx_);
1646 options()->transformSkewY(skewy_);
1651 if (constOptions()->type() != UndefinedType)
1652 return(constOptions()->type());
1653 return(GetImageType(constImage()));
1659 options()->type(type_);
1661 SetImageType(image(),type_,exceptionInfo);
1668 options()->verbose(verboseFlag_);
1673 return(constOptions()->verbose());
1677 const VirtualPixelMethod virtualPixelMethod_)
1681 SetImageVirtualPixelMethod(image(),virtualPixelMethod_,exceptionInfo);
1687 return(GetImageVirtualPixelMethod(constImage()));
1693 options()->x11Display(display_);
1698 return(constOptions()->x11Display());
1703 return(constImage()->resolution.x);
1708 return(constImage()->resolution.y);
1717 newImage=AdaptiveBlurImage(constImage(),radius_,sigma_,exceptionInfo);
1718 replaceImage(newImage);
1735 ParseMetaGeometry(static_cast<std::string>(geometry_).c_str(),&x,&y,&width,
1739 newImage=AdaptiveResizeImage(constImage(),width,height,exceptionInfo);
1740 replaceImage(newImage);
1750 newImage=AdaptiveSharpenImage(constImage(),radius_,sigma_,exceptionInfo);
1751 replaceImage(newImage);
1756 const double radius_,
const double sigma_ )
1763 newImage=AdaptiveSharpenImage(constImage(),radius_,sigma_,exceptionInfo);
1765 replaceImage(newImage);
1777 newImage=AdaptiveThresholdImage(constImage(),width_,height_,bias_,
1779 replaceImage(newImage);
1789 newImage=AddNoiseImage(constImage(),noiseType_,attenuate_,exceptionInfo);
1790 replaceImage(newImage);
1795 const NoiseType noiseType_,
const double attenuate_)
1802 newImage=AddNoiseImage(constImage(),noiseType_,attenuate_,exceptionInfo);
1804 replaceImage(newImage);
1816 _affine.sx=affine_.
sx();
1817 _affine.sy=affine_.
sy();
1818 _affine.rx=affine_.
rx();
1819 _affine.ry=affine_.
ry();
1820 _affine.tx=affine_.
tx();
1821 _affine.ty=affine_.
ty();
1824 newImage=AffineTransformImage(constImage(),&_affine,exceptionInfo);
1825 replaceImage(newImage);
1833 SetImageAlpha(image(),alpha_,exceptionInfo);
1841 SetImageAlphaChannel(image(),alphaOption_,exceptionInfo);
1848 annotate(text_,location_,NorthWestGravity,0.0);
1852 const Geometry &boundingArea_,
const GravityType gravity_)
1854 annotate(text_,boundingArea_,gravity_,0.0);
1858 const Geometry &boundingArea_,
const GravityType gravity_,
1859 const double degrees_)
1865 boundingArea[MagickPathExtent];
1872 drawInfo=options()->drawInfo();
1873 drawInfo->text=DestroyString(drawInfo->text);
1874 drawInfo->text=
const_cast<char *
>(text_.c_str());
1875 drawInfo->geometry=DestroyString(drawInfo->geometry);
1879 if (boundingArea_.
width() == 0 || boundingArea_.
height() == 0)
1881 FormatLocaleString(boundingArea,MagickPathExtent,
"%+.20g%+.20g",
1882 (
double) boundingArea_.
xOff(),(double) boundingArea_.
yOff());
1886 (void) CopyMagickString(boundingArea,
1887 std::string(boundingArea_).c_str(), MagickPathExtent);
1889 drawInfo->geometry=boundingArea;
1892 drawInfo->gravity=gravity_;
1894 oaffine=drawInfo->affine;
1895 if (degrees_ != 0.0)
1908 current=drawInfo->affine;
1914 drawInfo->affine.sx=current.sx*affine.sx+current.ry*affine.rx;
1915 drawInfo->affine.rx=current.rx*affine.sx+current.sy*affine.rx;
1916 drawInfo->affine.ry=current.sx*affine.ry+current.ry*affine.sy;
1917 drawInfo->affine.sy=current.rx*affine.ry+current.sy*affine.sy;
1918 drawInfo->affine.tx=current.sx*affine.tx+current.ry*affine.ty
1923 AnnotateImage(image(),drawInfo,exceptionInfo);
1926 drawInfo->affine=oaffine;
1927 drawInfo->text=(
char *) NULL;
1928 drawInfo->geometry=(
char *) NULL;
1934 const GravityType gravity_)
1941 drawInfo=options()->drawInfo();
1942 drawInfo->text=DestroyString(drawInfo->text);
1943 drawInfo->text=
const_cast<char *
>(text_.c_str());
1944 drawInfo->gravity=gravity_;
1947 AnnotateImage(image(),drawInfo,exceptionInfo);
1949 drawInfo->gravity=NorthWestGravity;
1950 drawInfo->text=(
char *) NULL;
1958 (void) SetImageArtifact(image(),name_.c_str(),value_.c_str());
1966 value=GetImageArtifact(constImage(),name_.c_str());
1968 return(std::string(value));
1969 return(std::string());
1976 SetImageProperty(image(),name_.c_str(),value_,exceptionInfo);
1984 SetImageProperty(image(),name_.c_str(),value_.c_str(),exceptionInfo);
1994 value=GetImageProperty(constImage(),name_.c_str(),exceptionInfo);
1998 return(std::string(value));
2000 return(std::string());
2007 (void) SyncImageSettings(imageInfo(),image(),exceptionInfo);
2008 (void) AutoGammaImage(image(),exceptionInfo);
2017 (void) SyncImageSettings(imageInfo(),image(),exceptionInfo);
2018 (void) AutoGammaImage(image(),exceptionInfo);
2027 (void) AutoLevelImage(image(),exceptionInfo);
2036 (void) AutoLevelImage(image(),exceptionInfo);
2046 if (image()->orientation == UndefinedOrientation ||
2047 image()->orientation == TopLeftOrientation)
2051 newImage=AutoOrientImage(constImage(),image()->orientation,exceptionInfo);
2052 replaceImage(newImage);
2060 AutoThresholdImage(image(),method_, exceptionInfo);
2068 BlackThresholdImage(image(),threshold_.c_str(),exceptionInfo);
2073 const std::string &threshold_)
2078 BlackThresholdImage(image(),threshold_.c_str(),exceptionInfo);
2089 newImage=BlueShiftImage(constImage(),factor_,exceptionInfo);
2090 replaceImage(newImage);
2100 newImage=BlurImage(constImage(),radius_,sigma_,exceptionInfo);
2101 replaceImage(newImage);
2106 const double radius_,
const double sigma_)
2113 newImage=BlurImage(constImage(),radius_,sigma_,exceptionInfo);
2115 replaceImage(newImage);
2125 borderInfo=geometry_;
2128 newImage=BorderImage(constImage(),&borderInfo,image()->compose,
2130 replaceImage(newImage);
2135 const double contrast_)
2139 BrightnessContrastImage(image(),brightness_,contrast_,exceptionInfo);
2144 const double brightness_,
const double contrast_)
2149 BrightnessContrastImage(image(),brightness_,contrast_,exceptionInfo);
2155 const double lowerPercent_,
const double upperPercent_)
2162 newImage=CannyEdgeImage(constImage(),radius_,sigma_,lowerPercent_,
2163 upperPercent_,exceptionInfo);
2164 replaceImage(newImage);
2172 (void) ColorDecisionListImage(image(),cdl_.c_str(),exceptionInfo);
2182 newImage=SeparateImage(image(),channel_,exceptionInfo);
2183 replaceImage(newImage);
2193 newImage=CharcoalImage(image(),radius_,sigma_,exceptionInfo);
2194 replaceImage(newImage);
2199 const double radius_,
const double sigma_)
2206 newImage=CharcoalImage(image(),radius_,sigma_,exceptionInfo);
2208 replaceImage(newImage);
2221 newImage=ChopImage(image(),&chopInfo,exceptionInfo);
2222 replaceImage(newImage);
2230 image()->chromaticity.blue_primary.x=x_;
2231 image()->chromaticity.blue_primary.y=y_;
2232 image()->chromaticity.blue_primary.z=z_;
2237 *x_=constImage()->chromaticity.blue_primary.x;
2238 *y_=constImage()->chromaticity.blue_primary.y;
2239 *z_=constImage()->chromaticity.blue_primary.z;
2246 image()->chromaticity.green_primary.x=x_;
2247 image()->chromaticity.green_primary.y=y_;
2248 image()->chromaticity.green_primary.z=z_;
2253 *x_=constImage()->chromaticity.green_primary.x;
2254 *y_=constImage()->chromaticity.green_primary.y;
2255 *z_=constImage()->chromaticity.green_primary.z;
2262 image()->chromaticity.red_primary.x=x_;
2263 image()->chromaticity.red_primary.y=y_;
2264 image()->chromaticity.red_primary.z=z_;
2269 *x_=constImage()->chromaticity.red_primary.x;
2270 *y_=constImage()->chromaticity.red_primary.y;
2271 *z_=constImage()->chromaticity.red_primary.z;
2278 image()->chromaticity.white_point.x=x_;
2279 image()->chromaticity.white_point.y=y_;
2280 image()->chromaticity.white_point.z=z_;
2285 *x_=constImage()->chromaticity.white_point.x;
2286 *y_=constImage()->chromaticity.white_point.y;
2287 *z_=constImage()->chromaticity.white_point.z;
2294 ClampImage(image(),exceptionInfo);
2303 ClampImage(image(),exceptionInfo);
2312 ClipImage(image(),exceptionInfo);
2320 ClipImagePath(image(),pathname_.c_str(),(MagickBooleanType) inside_,
2326 const PixelInterpolateMethod method)
2330 ClutImage(image(),clutImage_.
constImage(),method,exceptionInfo);
2335 const Image &clutImage_,
const PixelInterpolateMethod method)
2340 ClutImage(image(),clutImage_.
constImage(),method,exceptionInfo);
2347 colorize(alpha_,alpha_,alpha_,penColor_);
2351 const unsigned int alphaGreen_,
const unsigned int alphaBlue_,
2352 const Color &penColor_)
2355 blend[MagickPathExtent];
2365 "Pen color argument is invalid");
2367 FormatLocaleString(blend,MagickPathExtent,
"%u/%u/%u",alphaRed_,alphaGreen_,
2370 target=
static_cast<PixelInfo
>(penColor_);
2372 newImage=ColorizeImage(image(),blend,&target,exceptionInfo);
2373 replaceImage(newImage);
2384 if (index_ > (MaxColormapSize-1))
2386 "Colormap index must be less than MaxColormapSize");
2390 "Color argument is invalid");
2395 if (colorMapSize() < (index_+1))
2396 colorMapSize(index_+1);
2399 (imageptr->colormap)[index_]=color_;
2404 if (!constImage()->colormap)
2407 "Image does not contain a colormap");
2411 if (index_ > constImage()->colors-1)
2418 const double *color_matrix_)
2424 kernel_info=AcquireKernelInfo((
const char *) NULL,exceptionInfo);
2425 if (kernel_info != (KernelInfo *) NULL)
2427 kernel_info->width=order_;
2428 kernel_info->height=order_;
2429 kernel_info->values=(MagickRealType *) AcquireAlignedMemory(order_,
2430 order_*
sizeof(*kernel_info->values));
2431 if (kernel_info->values != (MagickRealType *) NULL)
2436 for (ssize_t i=0; i < (ssize_t) (order_*order_); i++)
2437 kernel_info->values[i]=color_matrix_[i];
2438 newImage=ColorMatrixImage(image(),kernel_info,exceptionInfo);
2439 replaceImage(newImage);
2441 kernel_info=DestroyKernelInfo(kernel_info);
2455 status=
static_cast<bool>(IsImagesEqual(constImage(),ref.
constImage(),
2467 GetImageDistortion(image(),reference_.
constImage(),metric_,&distortion,
2474 const Image &reference_,
const MetricType metric_)
2481 GetImageDistortion(image(),reference_.
constImage(),metric_,&distortion,
2489 const MetricType metric_,
double *distortion)
2495 newImage=CompareImages(image(),reference_.
constImage(),metric_,distortion,
2505 const Image &reference_,
const MetricType metric_,
double *distortion)
2512 newImage=CompareImages(image(),reference_.
constImage(),metric_,distortion,
2523 const Geometry &offset_,
const CompositeOperator compose_)
2533 ParseMetaGeometry(static_cast<std::string>(offset_).c_str(),&x,&y,&width,
2538 CompositeImage(image(),compositeImage_.
constImage(),compose_,MagickTrue,
2544 const GravityType gravity_,
const CompositeOperator compose_)
2550 SetGeometry(compositeImage_.
constImage(),&geometry);
2551 GravityAdjustGeometry(columns(),rows(),gravity_,&geometry);
2554 CompositeImage(image(),compositeImage_.
constImage(),compose_,MagickTrue,
2555 geometry.x,geometry.y,exceptionInfo);
2560 const ssize_t xOffset_,
const ssize_t yOffset_,
2561 const CompositeOperator compose_)
2567 CompositeImage(image(),compositeImage_.
constImage(),compose_,MagickTrue,
2568 xOffset_,yOffset_,exceptionInfo);
2578 newImage=ConnectedComponentsImage(constImage(),connectivity_,
2579 (CCObjectInfo **) NULL,exceptionInfo);
2580 replaceImage(newImage);
2588 ContrastImage(image(),(MagickBooleanType) sharpen_,exceptionInfo);
2593 const double whitePoint_)
2597 ContrastStretchImage(image(),blackPoint_,whitePoint_,exceptionInfo);
2602 const double blackPoint_,
const double whitePoint_)
2607 ContrastStretchImage(image(),blackPoint_,whitePoint_,exceptionInfo);
2618 kernel_info=AcquireKernelInfo((
const char *) NULL,exceptionInfo);
2619 kernel_info->width=order_;
2620 kernel_info->height=order_;
2621 kernel_info->x=(ssize_t) (order_-1)/2;
2622 kernel_info->y=(ssize_t) (order_-1)/2;
2623 kernel_info->values=(MagickRealType *) AcquireAlignedMemory(order_,
2624 order_*
sizeof(*kernel_info->values));
2625 if (kernel_info->values != (MagickRealType *) NULL)
2630 for (ssize_t i=0; i < (ssize_t) (order_*order_); i++)
2631 kernel_info->values[i]=kernel_[i];
2632 newImage=ConvolveImage(image(),kernel_info,exceptionInfo);
2633 replaceImage(newImage);
2635 kernel_info=DestroyKernelInfo(kernel_info);
2649 (void) CopyImagePixels(image(),source_.
constImage(),&geometry,&offset,
2663 newImage=CropImage(constImage(),&cropInfo,exceptionInfo);
2664 replaceImage(newImage);
2672 CycleColormapImage(image(),amount_,exceptionInfo);
2680 DecipherImage(image(),passphrase_.c_str(),exceptionInfo);
2685 const std::string &key_,
bool flag_)
2691 definition=magick_ +
":" + key_;
2693 (void) SetImageOption(imageInfo(),definition.c_str(),
"");
2695 DeleteImageOption(imageInfo(),definition.c_str());
2699 const std::string &key_ )
const 2707 key=magick_ +
":" + key_;
2708 option=GetImageOption(constImageInfo(),key.c_str());
2715 const std::string &key_,
const std::string &value_)
2722 format=magick_ +
":" + key_;
2724 (void) SetImageOption(imageInfo(),format.c_str(),option.c_str());
2728 const std::string &key_)
const 2736 definition=magick_ +
":" + key_;
2737 option=GetImageOption(constImageInfo(),definition.c_str());
2739 return(std::string(option));
2740 return(std::string());
2749 newImage=DeskewImage(constImage(),threshold_,exceptionInfo);
2750 replaceImage(newImage);
2760 newImage=DespeckleImage(constImage(),exceptionInfo);
2761 replaceImage(newImage);
2768 DisplayImages(imageInfo(),image(),exceptionInfo);
2773 const size_t numberArguments_,
const double *arguments_,
const bool bestfit_)
2779 newImage=DistortImage(constImage(), method_,numberArguments_,arguments_,
2780 bestfit_ ==
true ? MagickTrue : MagickFalse,exceptionInfo);
2781 replaceImage(newImage);
2792 wand=AcquireDrawingWand(options()->drawInfo(),image());
2796 drawable_.operator()(wand);
2801 wand=DestroyDrawingWand(wand);
2813 wand= AcquireDrawingWand(options()->drawInfo(),image());
2817 for (std::vector<Magick::Drawable>::const_iterator p = drawable_.begin();
2818 p != drawable_.end(); p++ )
2820 p->operator()(wand);
2821 if (DrawGetExceptionType(wand) != MagickCore::UndefinedException)
2825 if (DrawGetExceptionType(wand) == MagickCore::UndefinedException)
2829 wand=DestroyDrawingWand(wand);
2840 newImage=EdgeImage(constImage(),radius_,exceptionInfo);
2841 replaceImage(newImage);
2851 newImage=EmbossImage(constImage(),radius_,sigma_,exceptionInfo);
2852 replaceImage(newImage);
2860 EncipherImage(image(),passphrase_.c_str(),exceptionInfo);
2870 newImage=EnhanceImage(constImage(),exceptionInfo);
2871 replaceImage(newImage);
2879 EqualizeImage(image(),exceptionInfo);
2887 (void) SetImageBackgroundColor(image(),exceptionInfo);
2892 const MagickEvaluateOperator operator_,
double rvalue_)
2896 EvaluateImage(image(),operator_,rvalue_,exceptionInfo);
2902 const MagickFunction function_,
const size_t number_parameters_,
2903 const double *parameters_)
2907 FunctionImage(image(),function_,number_parameters_,parameters_,
2914 const ssize_t y_,
const size_t columns_,
const size_t rows_,
2915 const MagickEvaluateOperator operator_,
const double rvalue_)
2923 geometry.width = columns_;
2924 geometry.height = rows_;
2929 cropImage=CropImage(image(),&geometry,exceptionInfo);
2931 EvaluateImage(
cropImage,operator_,rvalue_,exceptionInfo);
2933 (void) CompositeImage(image(),
cropImage,image()->alpha_trait ==
2934 BlendPixelTrait ? OverCompositeOp : CopyCompositeOp,MagickFalse,
2935 geometry.x,geometry.y,exceptionInfo );
2946 extentInfo=geometry_;
2949 extentInfo.x=geometry_.
xOff();
2950 extentInfo.y=geometry_.
yOff();
2952 newImage=ExtentImage(image(),&extentInfo,exceptionInfo);
2953 replaceImage(newImage);
2958 const Color &backgroundColor_)
2960 backgroundColor(backgroundColor_);
2965 const Color &backgroundColor_,
const GravityType gravity_)
2967 backgroundColor(backgroundColor_);
2968 extent(geometry_,gravity_);
2972 const GravityType gravity_)
2977 SetGeometry(image(),&geometry);
2978 geometry.width=geometry_.
width();
2979 geometry.height=geometry_.
height();
2980 GravityAdjustGeometry(image()->columns,image()->rows,gravity_,&geometry);
2990 newImage=FlipImage(constImage(),exceptionInfo);
2991 replaceImage(newImage);
2996 const unsigned int alpha_,
const bool invert_)
3003 target=
static_cast<PixelInfo
>(pixelColor(x_,y_));
3004 target.alpha=alpha_;
3007 FloodfillPaintImage(image(),options()->drawInfo(),&target,x_,y_,
3008 (MagickBooleanType)invert_,exceptionInfo);
3014 const unsigned int alpha_,
const Color &target_,
const bool invert_)
3021 target=
static_cast<PixelInfo
>(target_);
3022 target.alpha=alpha_;
3025 FloodfillPaintImage(image(),options()->drawInfo(),&target,x_,y_,
3026 (MagickBooleanType)invert_,exceptionInfo);
3034 floodFillColor(point_.
xOff(),point_.
yOff(),fillColor_,invert_);
3045 pixel=
static_cast<PixelInfo
>(pixelColor(x_,y_));
3046 floodFill(x_,y_,(
Magick::Image *)NULL,fillColor_,&pixel,invert_);
3053 floodFillColor(point_.
xOff(),point_.
yOff(),fillColor_,borderColor_,invert_);
3065 pixel=
static_cast<PixelInfo
>(borderColor_);
3066 floodFill(x_,y_,(
Magick::Image *)NULL,fillColor_,&pixel,invert_);
3072 floodFillTexture(point_.
xOff(),point_.
yOff(),texture_,invert_);
3083 pixel=
static_cast<PixelInfo
>(pixelColor(x_,y_));
3091 floodFillTexture(point_.
xOff(),point_.
yOff(),texture_,borderColor_,invert_);
3103 pixel=
static_cast<PixelInfo
>(borderColor_);
3113 newImage=FlopImage(constImage(),exceptionInfo);
3114 replaceImage(newImage);
3124 drawInfo=options()->drawInfo();
3125 drawInfo->text=
const_cast<char *
>(text_.c_str());
3127 GetTypeMetrics(image(),drawInfo,&(metrics->_typeMetric),exceptionInfo);
3138 drawInfo=options()->drawInfo();
3139 drawInfo->text=
const_cast<char *
>(text_.c_str());
3141 GetMultilineTypeMetrics(image(),drawInfo,&(metrics->_typeMetric),exceptionInfo);
3154 info.x=
static_cast<ssize_t
>(geometry_.
width());
3155 info.y=
static_cast<ssize_t
>(geometry_.
height());
3156 info.width=columns() + (
static_cast<size_t>(info.x) << 1);
3157 info.height=rows() + (
static_cast<size_t>(info.y) << 1);
3158 info.outer_bevel=geometry_.
xOff();
3159 info.inner_bevel=geometry_.
yOff();
3162 newImage=FrameImage(constImage(),&info,image()->compose,exceptionInfo);
3163 replaceImage(newImage);
3168 const ssize_t innerBevel_,
const ssize_t outerBevel_)
3176 info.x=
static_cast<ssize_t
>(width_);
3177 info.y=
static_cast<ssize_t
>(height_);
3178 info.width=columns() + (
static_cast<size_t>(info.x) << 1);
3179 info.height=rows() + (
static_cast<size_t>(info.y) << 1);
3180 info.outer_bevel=
static_cast<ssize_t
>(outerBevel_);
3181 info.inner_bevel=
static_cast<ssize_t
>(innerBevel_);
3184 newImage=FrameImage(constImage(),&info,image()->compose,exceptionInfo);
3185 replaceImage(newImage);
3195 newImage=FxImage(constImage(),expression_.c_str(),exceptionInfo);
3196 replaceImage(newImage);
3201 const Magick::ChannelType channel_)
3208 newImage=FxImage(constImage(),expression_.c_str(),exceptionInfo);
3210 replaceImage(newImage);
3218 GammaImage(image(),gamma_,exceptionInfo);
3223 const double gammaBlue_)
3228 (void) GammaImage(image(),gammaRed_,exceptionInfo);
3230 (void) GammaImage(image(),gammaGreen_,exceptionInfo);
3232 (void) GammaImage(image(),gammaBlue_,exceptionInfo);
3243 newImage=GaussianBlurImage(constImage(),radius_,sigma_,exceptionInfo);
3244 replaceImage(newImage);
3249 const double radius_,
const double sigma_)
3256 newImage=GaussianBlurImage(constImage(),radius_,sigma_,exceptionInfo);
3258 replaceImage(newImage);
3263 const ssize_t y_,
const size_t columns_,
const size_t rows_)
const 3269 p=GetVirtualPixels(constImage(),x_, y_,columns_, rows_,exceptionInfo);
3279 result=GetVirtualMetacontent(constImage());
3283 "Unable to retrieve meta content.");
3293 result=GetAuthenticMetacontent(image());
3297 "Unable to retrieve meta content.");
3303 const size_t columns_,
const size_t rows_)
3310 result=GetAuthenticPixels(image(),x_, y_,columns_,rows_,exceptionInfo);
3320 (void) GrayscaleImage(image(),method_,exceptionInfo);
3328 (void) HaldClutImage(image(),clutImage_.
constImage(),exceptionInfo);
3333 const size_t threshold_)
3339 newImage=HoughLineImage(constImage(),width_,height_,threshold_,
3341 replaceImage(newImage);
3351 image_type=IdentifyImageType(constImage(),exceptionInfo);
3362 newImage=ImplodeImage(constImage(),factor_,image()->interpolate,
3364 replaceImage(newImage);
3370 inverseFourierTransform(phase_,
true);
3374 const bool magnitude_)
3380 newImage=InverseFourierTransformImage(constImage(),phase_.
constImage(),
3381 magnitude_ ==
true ? MagickTrue : MagickFalse,exceptionInfo);
3382 replaceImage(newImage);
3392 newImage=KuwaharaImage(constImage(),radius_,sigma_,exceptionInfo);
3393 replaceImage(newImage);
3398 const double radius_,
const double sigma_)
3405 newImage=KuwaharaImage(constImage(),radius_,sigma_,exceptionInfo);
3406 replaceImage(newImage);
3412 const double gamma_)
3416 (void) LevelImage(image(),blackPoint_,whitePoint_,gamma_,exceptionInfo);
3421 const double blackPoint_,
const double whitePoint_,
const double gamma_)
3426 (void) LevelImage(image(),blackPoint_,whitePoint_,gamma_,exceptionInfo);
3432 const Color &whiteColor_,
const bool invert_)
3440 black=
static_cast<PixelInfo
>(blackColor_);
3441 white=
static_cast<PixelInfo
>(whiteColor_);
3443 (void) LevelImageColors(image(),&black,&white,invert_ ==
true ?
3444 MagickTrue : MagickFalse,exceptionInfo);
3449 const Color &blackColor_,
const Color &whiteColor_,
const bool invert_)
3457 black=
static_cast<PixelInfo
>(blackColor_);
3458 white=
static_cast<PixelInfo
>(whiteColor_);
3461 (void) LevelImageColors(image(),&black,&white,invert_ ==
true ?
3462 MagickTrue : MagickFalse,exceptionInfo);
3468 const double gamma_)
3472 (void) LevelizeImage(image(),blackPoint_,whitePoint_,gamma_,exceptionInfo);
3477 const double blackPoint_,
const double whitePoint_,
const double gamma_)
3482 (void) LevelizeImage(image(),blackPoint_,whitePoint_,gamma_,exceptionInfo);
3488 const double whitePoint_)
3492 LinearStretchImage(image(),blackPoint_,whitePoint_,exceptionInfo);
3509 ParseMetaGeometry(static_cast<std::string>(geometry_).c_str(),&x,&y,&width,
3513 newImage=LiquidRescaleImage(image(),width,height,x,y,exceptionInfo);
3514 replaceImage(newImage);
3524 newImage=LocalContrastImage(constImage(),radius_,strength_,exceptionInfo);
3525 replaceImage(newImage);
3530 const double radius_,
const double strength_)
3537 newImage=LocalContrastImage(constImage(),radius_,strength_,exceptionInfo);
3539 replaceImage(newImage);
3549 newImage=MagnifyImage(constImage(),exceptionInfo);
3550 replaceImage(newImage);
3558 options()->quantizeDither(dither_);
3559 RemapImage(options()->quantizeInfo(),image(),mapImage_.
constImage(),
3565 const double color_distance_)
3571 newImage=MeanShiftImage(constImage(),width_,height_,color_distance_,
3573 replaceImage(newImage);
3583 newImage=StatisticImage(image(),MedianStatistic,(
size_t) radius_,
3584 (
size_t) radius_,exceptionInfo);
3585 replaceImage(newImage);
3595 newImage=MinifyImage(constImage(),exceptionInfo);
3596 replaceImage(newImage);
3604 modulate[MagickPathExtent + 1];
3606 FormatLocaleString(modulate,MagickPathExtent,
"%3.6f,%3.6f,%3.6f",brightness_,
3611 ModulateImage(image(),modulate,exceptionInfo);
3621 const std::string kernel_,
const ssize_t iterations_)
3630 kernel=AcquireKernelInfo(kernel_.c_str(),exceptionInfo);
3631 if (kernel == (KernelInfo *) NULL)
3633 newImage=MorphologyImage(constImage(),method_,iterations_,kernel,
3635 replaceImage(newImage);
3636 kernel=DestroyKernelInfo(kernel);
3641 const KernelInfoType kernel_,
const std::string arguments_,
3642 const ssize_t iterations_)
3650 option=CommandOptionToMnemonic(MagickKernelOptions,kernel_);
3651 if (option == (
const char *)NULL)
3654 "Unable to determine kernel type.");
3657 kernel=std::string(option);
3658 if (!arguments_.empty())
3659 kernel+=
":"+arguments_;
3661 morphology(method_,kernel,iterations_);
3665 const MorphologyMethod method_,
const std::string kernel_,
3666 const ssize_t iterations_)
3676 kernel=AcquireKernelInfo(kernel_.c_str(),exceptionInfo);
3677 if (kernel == (KernelInfo *)NULL)
3680 "Unable to parse kernel.");
3684 newImage=MorphologyImage(constImage(),method_,iterations_,kernel,
3687 replaceImage(newImage);
3688 kernel=DestroyKernelInfo(kernel);
3693 const MorphologyMethod method_,
const KernelInfoType kernel_,
3694 const std::string arguments_,
const ssize_t iterations_)
3702 option=CommandOptionToMnemonic(MagickKernelOptions,kernel_);
3703 if (option == (
const char *)NULL)
3706 "Unable to determine kernel type.");
3710 kernel=std::string(option);
3711 if (!arguments_.empty())
3712 kernel+=
":"+arguments_;
3714 morphologyChannel(channel_,method_,kernel,iterations_);
3718 const double angle_)
3724 newImage=MotionBlurImage(constImage(),radius_,sigma_,angle_,exceptionInfo);
3725 replaceImage(newImage);
3733 NegateImage(image(),(MagickBooleanType) grayscale_,exceptionInfo);
3738 const bool grayscale_)
3743 NegateImage(image(),(MagickBooleanType) grayscale_,exceptionInfo);
3752 NormalizeImage(image(),exceptionInfo);
3762 newImage=OilPaintImage(constImage(),radius_,sigma_,exceptionInfo);
3763 replaceImage(newImage);
3780 "Opaque color argument is invalid");
3784 "Pen color argument is invalid");
3787 opaqueColor=opaqueColor_;
3791 (void) QueryColorCompliance(opaqueColor.c_str(),AllCompliance,&opaque,
3793 (void) QueryColorCompliance(penColor.c_str(),AllCompliance,&pen,
3795 OpaquePaintImage(image(),&opaque,&pen,invert_ ? MagickTrue : MagickFalse,
3804 (void) OrderedDitherImage(image(),thresholdMap_.c_str(),exceptionInfo);
3809 std::string thresholdMap_)
3814 (void)OrderedDitherImage(image(),thresholdMap_.c_str(),exceptionInfo);
3823 PerceptibleImage(image(),epsilon_,exceptionInfo);
3828 const double epsilon_)
3833 PerceptibleImage(image(),epsilon_,exceptionInfo);
3849 options()->fileName(imageSpec_);
3850 newImage=PingImage(imageInfo(),exceptionInfo);
3851 read(newImage,exceptionInfo);
3860 newImage=PingBlob(imageInfo(),blob_.
data(),blob_.
length(),exceptionInfo);
3861 read(newImage,exceptionInfo);
3865 const Color &color_)
3874 if (y_ > (ssize_t) rows() || x_ > (ssize_t) columns())
3876 "Access outside of image boundary");
3881 classType(DirectClass );
3886 pixel=pixels.get(x_, y_, 1, 1 );
3888 MagickCore::SetPixelViaPixelInfo(constImage(),&packet,pixel);
3894 const ssize_t y_)
const 3899 pixel=getConstPixels(x_,y_,1,1);
3905 MagickCore::GetPixelInfoPixel(constImage(),pixel,&packet);
3906 return(
Color(packet));
3913 const PixelInterpolateMethod method_)
3919 newImage=PolaroidImage(constImage(),options()->drawInfo(),caption_.c_str(),
3920 angle_,method_,exceptionInfo);
3921 replaceImage(newImage);
3929 PosterizeImage(image(),levels_,method_,exceptionInfo);
3934 const size_t levels_,
const DitherMethod method_)
3939 PosterizeImage(image(),levels_,method_,exceptionInfo);
3950 (void) InvokeDynamicImageFilter(name_.c_str(),&image(),argc,argv,
3960 (void) ProfileImage(image(),name_.c_str(),(
unsigned char *)profile_.
data(),
3961 profile_.
length(),exceptionInfo);
3970 profile=GetImageProfile(constImage(),name_.c_str());
3972 if (profile == (StringInfo *) NULL)
3974 return(
Blob((
void*) GetStringInfoDatum(profile),GetStringInfoLength(
3983 options()->quantizeInfo()->measure_error=MagickTrue;
3985 options()->quantizeInfo()->measure_error=MagickFalse;
3988 QuantizeImage(options()->quantizeInfo(),image(),exceptionInfo);
3995 raiseInfo=geometry_;
3999 RaiseImage(image(),&raiseInfo,raisedFlag_ ==
true ? MagickTrue : MagickFalse,
4007 (void) RandomThresholdImage(image(),low_,high_,exceptionInfo);
4012 const double low_,
const double high_)
4017 (void) RandomThresholdImage(image(),low_,high_,exceptionInfo);
4028 newImage=BlobToImage(imageInfo(),static_cast<const void *>(blob_.
data()),
4029 blob_.
length(),exceptionInfo);
4030 read(newImage,exceptionInfo);
4040 const size_t depth_)
4048 const size_t depth_,
const std::string &magick_)
4054 fileName(magick_ +
':');
4059 const std::string &magick_)
4064 fileName(magick_ +
':');
4075 const std::string &map_,
const StorageType type_,
const void *pixels_)
4081 newImage=ConstituteImage(width_,height_,map_.c_str(),type_, pixels_,
4083 replaceImage(newImage);
4093 options()->fileName(imageSpec_);
4094 newImage=ReadImage(imageInfo(),exceptionInfo);
4095 read(newImage,exceptionInfo);
4100 mask(mask_,ReadPixelMask);
4105 return(mask(ReadPixelMask));
4109 const unsigned char *source_)
4114 quantum_info=AcquireQuantumInfo(imageInfo(),image());
4116 ImportQuantumPixels(image(),(MagickCore::CacheView *) NULL,quantum_info,
4117 quantum_,source_,exceptionInfo);
4118 quantum_info=DestroyQuantumInfo(quantum_info);
4133 newImage=StatisticImage(constImage(),NonpeakStatistic,order_,
4134 order_,exceptionInfo);
4135 replaceImage(newImage);
4143 image()->page.width = 0;
4144 image()->page.height = 0;
4145 image()->page.x = 0;
4146 image()->page.y = 0;
4155 newImage=ResampleImage(constImage(),density_.
x(),density_.
y(),
4156 image()->filter,exceptionInfo);
4157 replaceImage(newImage);
4176 ParseMetaGeometry(static_cast<std::string>(geometry_).c_str(),&x,&y,&width,
4180 newImage=ResizeImage(constImage(),width,height,image()->filter,
4182 replaceImage(newImage);
4192 newImage=RollImage(constImage(),roll_.
xOff(),roll_.
yOff(),exceptionInfo);
4193 replaceImage(newImage);
4203 newImage=RollImage(constImage(),static_cast<ssize_t>(columns_),
4204 static_cast<ssize_t>(rows_),exceptionInfo);
4205 replaceImage(newImage);
4215 newImage=RotateImage(constImage(),degrees_,exceptionInfo);
4216 replaceImage(newImage);
4226 newImage=RotationalBlurImage(constImage(),angle_,exceptionInfo);
4227 replaceImage(newImage);
4232 const double angle_)
4239 newImage=RotationalBlurImage(constImage(),angle_,exceptionInfo);
4241 replaceImage(newImage);
4258 ParseMetaGeometry(static_cast<std::string>(geometry_).c_str(),&x,&y,&width,
4262 newImage=SampleImage(constImage(),width,height,exceptionInfo);
4263 replaceImage(newImage);
4280 ParseMetaGeometry(static_cast<std::string>(geometry_).c_str(),&x,&y,&width,
4284 newImage=ScaleImage(constImage(),width,height,exceptionInfo);
4285 replaceImage(newImage);
4290 const double smoothingThreshold_)
4294 SegmentImage(image(),options()->quantizeColorSpace(),
4295 (MagickBooleanType) options()->verbose(),clusterThreshold_,
4296 smoothingThreshold_,exceptionInfo);
4297 SyncImage(image(),exceptionInfo);
4302 const double threshold_)
4308 newImage=SelectiveBlurImage(constImage(),radius_,sigma_,threshold_,
4310 replaceImage(newImage);
4315 const double radius_,
const double sigma_,
const double threshold_)
4322 newImage=SelectiveBlurImage(constImage(),radius_,sigma_,threshold_,
4325 replaceImage(newImage);
4335 image=SeparateImage(constImage(),channel_,exceptionInfo);
4349 newImage=SepiaToneImage(constImage(),threshold_,exceptionInfo);
4350 replaceImage(newImage);
4364 status=
static_cast<bool>(SetImageColorMetric(image(),ref.
constImage(),
4371 const size_t columns_,
const size_t rows_)
4378 result=QueueAuthenticPixels(image(),x_,y_,columns_,rows_,exceptionInfo);
4384 const bool colorShading_)
4390 newImage=ShadeImage(constImage(),colorShading_ ==
true ?
4391 MagickTrue : MagickFalse,azimuth_,elevation_,exceptionInfo);
4392 replaceImage(newImage);
4397 const ssize_t x_,
const ssize_t y_)
4403 newImage=ShadowImage(constImage(),percent_opacity_, sigma_,x_, y_,
4405 replaceImage(newImage);
4415 newImage=SharpenImage(constImage(),radius_,sigma_,exceptionInfo);
4416 replaceImage(newImage);
4421 const double radius_,
const double sigma_)
4428 newImage=SharpenImage(constImage(),radius_,sigma_,exceptionInfo);
4430 replaceImage(newImage);
4440 shaveInfo=geometry_;
4443 newImage=ShaveImage(constImage(),&shaveInfo,exceptionInfo);
4444 replaceImage(newImage);
4454 newImage=ShearImage(constImage(),xShearAngle_,yShearAngle_,exceptionInfo);
4455 replaceImage(newImage);
4460 const double contrast,
const double midpoint)
4464 (void) SigmoidalContrastImage(image(),(MagickBooleanType) sharpen_,contrast,
4465 midpoint,exceptionInfo);
4471 return(_imgRef->signature(force_));
4475 const double angle_)
4481 newImage=SketchImage(constImage(),radius_,sigma_,angle_,exceptionInfo);
4482 replaceImage(newImage);
4490 SolarizeImage(image(),factor_,exceptionInfo);
4495 const SparseColorMethod method_,
const size_t numberArguments_,
4496 const double *arguments_)
4503 newImage=SparseColorImage(constImage(),method_,numberArguments_,arguments_,
4506 replaceImage(newImage);
4516 spliceInfo=geometry_;
4519 newImage=SpliceImage(constImage(),&spliceInfo,exceptionInfo);
4520 replaceImage(newImage);
4525 const Color &backgroundColor_)
4527 backgroundColor(backgroundColor_);
4532 const Color &backgroundColor_,
const GravityType gravity_)
4534 backgroundColor(backgroundColor_);
4535 image()->gravity=gravity_;
4545 newImage=SpreadImage(constImage(),image()->interpolate,amount_,exceptionInfo);
4546 replaceImage(newImage);
4561 newImage=SteganoImage(constImage(),watermark_.
constImage(),exceptionInfo);
4562 replaceImage(newImage);
4572 newImage=StereoImage(constImage(),rightImage_.
constImage(),exceptionInfo);
4573 replaceImage(newImage);
4581 StripImage(image(),exceptionInfo);
4586 const MetricType metric_,
Geometry *offset_,
double *similarityMetric_,
4587 const double similarityThreshold)
4596 newImage=SimilarityImage(image(),reference_.
constImage(),metric_,
4597 similarityThreshold,&offset,similarityMetric_,exceptionInfo);
4613 newImage=SwirlImage(constImage(),degrees_,image()->interpolate,
4615 replaceImage(newImage);
4622 (void) SyncAuthenticPixels(image(),exceptionInfo);
4630 TextureImage(image(),texture_.
constImage(),exceptionInfo);
4638 BilevelImage(image(),threshold_,exceptionInfo);
4655 ParseMetaGeometry(static_cast<std::string>(geometry_).c_str(),&x,&y,&width,
4659 newImage=ThumbnailImage(constImage(),width,height,exceptionInfo);
4660 replaceImage(newImage);
4673 color=
static_cast<PixelInfo
>(constOptions()->fillColor());
4674 newImage=TintImage(constImage(),opacity_.c_str(),&color,exceptionInfo);
4675 replaceImage(newImage);
4682 options()->transformOrigin(x_,y_);
4688 options()->transformReset();
4694 options()->transformScale(sx_,sy_);
4707 "Color argument is invalid");
4711 (void) QueryColorCompliance(color.c_str(),AllCompliance,&target,
4714 TransparentPaintImage(image(),&target,TransparentAlpha,
4715 inverse_ ==
true ? MagickTrue : MagickFalse,exceptionInfo);
4720 const Color &colorHigh_)
4732 "Color argument is invalid");
4735 colorHigh=colorHigh_;
4738 (void) QueryColorCompliance(colorLow.c_str(),AllCompliance,&targetLow,
4740 (void) QueryColorCompliance(colorHigh.c_str(),AllCompliance,&targetHigh,
4743 TransparentPaintImageChroma(image(),&targetLow,&targetHigh,TransparentAlpha,
4744 MagickFalse,exceptionInfo);
4754 newImage=TransposeImage(constImage(),exceptionInfo);
4755 replaceImage(newImage);
4765 newImage=TransverseImage(constImage(),exceptionInfo);
4766 replaceImage(newImage);
4776 newImage=TrimImage(constImage(),exceptionInfo);
4777 replaceImage(newImage);
4787 image=UniqueImageColors(constImage(),exceptionInfo);
4796 const double amount_,
const double threshold_)
4802 newImage=UnsharpMaskImage(constImage(),radius_,sigma_,amount_,threshold_,
4804 replaceImage(newImage);
4809 const double radius_,
const double sigma_,
const double amount_,
4810 const double threshold_)
4817 newImage=UnsharpMaskImage(constImage(),radius_,sigma_,amount_,threshold_,
4820 replaceImage(newImage);
4825 const ssize_t x_,
const ssize_t y_)
4831 newImage=VignetteImage(constImage(),radius_,sigma_,x_,y_,exceptionInfo);
4832 replaceImage(newImage);
4842 newImage=WaveImage(constImage(),amplitude_,wavelength_,image()->interpolate,
4844 replaceImage(newImage);
4849 const double softness_)
4855 newImage=WaveletDenoiseImage(constImage(),threshold_,softness_,
4857 replaceImage(newImage);
4865 WhiteThresholdImage(image(),threshold_.c_str(),exceptionInfo);
4870 const std::string &threshold_)
4875 WhiteThresholdImage(image(),threshold_.c_str(),exceptionInfo);
4890 data=ImagesToBlob(constImageInfo(),image(),&length,exceptionInfo);
4894 data=RelinquishMagickMemory(data);
4909 data=ImagesToBlob(constImageInfo(),image(),&length,exceptionInfo);
4913 data=RelinquishMagickMemory(data);
4918 const size_t depth_)
4930 data=ImagesToBlob(constImageInfo(),image(),&length,exceptionInfo);
4934 data=RelinquishMagickMemory(data);
4939 const size_t columns_,
const size_t rows_,
const std::string &map_,
4940 const StorageType type_,
void *pixels_)
4943 ExportImagePixels(image(),x_,y_,columns_,rows_,map_.c_str(),type_,pixels_,
4951 fileName(imageSpec_);
4953 WriteImage(constImageInfo(),image(),exceptionInfo);
4959 mask(mask_,WritePixelMask);
4964 return(mask(WritePixelMask));
4968 unsigned char *destination_)
4973 quantum_info=AcquireQuantumInfo(imageInfo(),image());
4975 ExportQuantumPixels(image(),(MagickCore::CacheView *) NULL,quantum_info,
4976 quantum_,destination_, exceptionInfo);
4977 quantum_info=DestroyQuantumInfo(quantum_info);
4994 ParseMetaGeometry(static_cast<std::string>(geometry_).c_str(),&x,&y,&width,
4998 newImage=ResizeImage(constImage(),width,height,image()->filter,exceptionInfo);
4999 replaceImage(newImage);
5010 return(_imgRef->image());
5015 return(_imgRef->image());
5020 return(_imgRef->options()->imageInfo());
5025 return(_imgRef->options()->imageInfo());
5030 return(_imgRef->options());
5035 return(_imgRef->options());
5040 return(_imgRef->options()->quantizeInfo());
5045 return(_imgRef->options()->quantizeInfo());
5050 if (!_imgRef->isShared())
5054 replaceImage(CloneImage(image(),0,0,MagickTrue,exceptionInfo));
5068 image=AcquireImage(constImageInfo(),exceptionInfo);
5077 MagickCore::ExceptionInfo *exceptionInfo)
5090 DestroyImageList(next);
5092 replaceImage(image);
5093 if (exceptionInfo->severity == MagickCore::UndefinedException &&
5096 (void) MagickCore::DestroyExceptionInfo(exceptionInfo);
5099 "No image was loaded.");
5105 void Magick::Image::floodFill(
const ssize_t x_,
const ssize_t y_,
5107 const MagickCore::PixelInfo *target_,
const bool invert_)
5116 fillColor=options()->fillColor();
5121 fillPattern=CloneImage(options()->fillPattern(),0,0,MagickTrue,
5129 options()->fillColor(fill_);
5132 options()->fillPattern(fillPattern_->
constImage());
5135 (void) FloodfillPaintImage(image(),options()->drawInfo(),
5136 target_,
static_cast<ssize_t
>(x_),static_cast<ssize_t>(y_),
5137 (MagickBooleanType) invert_,exceptionInfo);
5139 options()->fillColor(fillColor);
5140 options()->fillPattern(fillPattern);
5144 void Magick::Image::mask(
const Magick::Image &mask_,
const PixelMask type)
5150 SetImageMask(image(),type,mask_.
constImage(),exceptionInfo);
5157 Magick::Image Magick::Image::mask(
const PixelMask type)
const 5163 image = GetImageMask(constImage(),type,exceptionInfo);
void localContrast(const double radius_, const double strength_)
Point density(void) const
void gaussianBlur(const double radius_, const double sigma_)
void swirl(const double degrees_)
class MagickPPExport Color
MagickPPExport const char * borderGeometryDefault
void morphology(const MorphologyMethod method_, const std::string kernel_, const ssize_t iterations_=1)
void decipher(const std::string &passphrase_)
MagickPPExport int operator!=(const Magick::Color &left_, const Magick::Color &right_)
ImageMoments moments(void) const
void splice(const Geometry &geometry_)
void width(size_t width_)
#define RestorePPChannelMask
size_t animationDelay(void) const
void resize(const Geometry &geometry_)
Image writeMask(void) const
void localContrastChannel(const ChannelType channel_, const double radius_, const double strength_)
void brightnessContrastChannel(const ChannelType channel_, const double brightness_=0.0, const double contrast_=0.0)
RenderingIntent renderingIntent(void) const
StyleType fontStyle(void) const
void ty(const double ty_)
void modulate(const double brightness_, const double saturation_, const double hue_)
size_t strokeMiterLimit(void) const
void annotate(const std::string &text_, const Geometry &location_)
void transformSkewX(const double skewx_)
VirtualPixelMethod virtualPixelMethod(void) const
Magick::ImageStatistics statistics() const
bool setColorMetric(const Image &reference_)
void chromaGreenPrimary(const double x_, const double y_, const double z_)
void fx(const std::string expression_)
#define ThrowImageException
Color matteColor(void) const
OrientationType orientation(void) const
double meanErrorPerPixel(void) const
void process(std::string name_, const ::ssize_t argc_, const char **argv_)
Blob exifProfile(void) const
void adaptiveThreshold(const size_t width_, const size_t height_, const double bias_=0.0)
void writePixels(const QuantumType quantum_, unsigned char *destination_)
void charcoal(const double radius_=0.0, const double sigma_=1.0)
EndianType endian(void) const
const Quantum * getConstPixels(const ::ssize_t x_, const ::ssize_t y_, const size_t columns_, const size_t rows_) const
void blur(const double radius_=0.0, const double sigma_=1.0)
Color borderColor(void) const
std::string label(void) const
void contrast(const bool sharpen_)
void profile(const std::string name_, const Blob &colorProfile_)
Blob iccColorProfile(void) const
const MagickCore::Image * constImage(void) const
void medianFilter(const double radius_=0.0)
size_t subRange(void) const
void height(size_t height_)
void chop(const Geometry &geometry_)
MagickPPExport const char * raiseGeometryDefault
void composite(const Image &compositeImage_, const Geometry &offset_, const CompositeOperator compose_=InCompositeOp)
void liquidRescale(const Geometry &geometry_)
void unsharpmask(const double radius_, const double sigma_, const double amount_, const double threshold_)
Color textUnderColor(void) const
#define DegreesToRadians(x)
void readPixels(const QuantumType quantum_, const unsigned char *source_)
void negate(const bool grayscale_=false)
void connectedComponents(const size_t connectivity_)
void raise(const Geometry &geometry_=raiseGeometryDefault, const bool raisedFlag_=false)
void sparseColor(const ChannelType channel_, const SparseColorMethod method_, const size_t numberArguments_, const double *arguments_)
void clutChannel(const ChannelType channel_, const Image &clutImage_, const PixelInterpolateMethod method)
void whiteThreshold(const std::string &threshold_)
std::string directory(void) const
void crop(const Geometry &geometry_)
void adaptiveResize(const Geometry &geometry_)
ImageType type(void) const
std::string backgroundTexture(void) const
std::string font(void) const
void tx(const double tx_)
void clipPath(const std::string pathname_, const bool inside_)
void posterizeChannel(const ChannelType channel_, const size_t levels_, const DitherMethod method_)
size_t quality(void) const
void defineValue(const std::string &magick_, const std::string &key_, const std::string &value_)
void vignette(const double radius_=0.0, const double sigma_=1.0, const ssize_t x_=0, const ssize_t y_=0)
std::string comment(void) const
Image separate(const ChannelType channel_) const
bool textAntiAlias(void) const
std::string magick(void) const
void shade(const double azimuth_=30, const double elevation_=30, const bool colorShading_=false)
size_t modulusDepth(void) const
void waveletDenoise(const double threshold_, const double softness_)
Image & operator=(const Image &image_)
void meanShift(const size_t width_, const size_t height_, const double color_distance_)
void kuwaharaChannel(const ChannelType channel_, const double radius_=0.0, const double sigma_=1.0)
MagickSizeType fileSize(void) const
void zoom(const Geometry &geometry_)
void autoThreshold(const AutoThresholdMethod method_)
void blurChannel(const ChannelType channel_, const double radius_=0.0, const double sigma_=1.0)
void morphologyChannel(const ChannelType channel_, const MorphologyMethod method_, const std::string kernel_, const ssize_t iterations_=1)
void highlightColor(const Color color_)
std::string fileName(void) const
ColorspaceType colorSpace(void) const
const Options * constOptions(void) const
MagickPPExport int operator<(const Magick::Color &left_, const Magick::Color &right_)
size_t quantizeColors(void) const
void yOff(::ssize_t yOff_)
Image uniqueColors(void) const
Image readMask(void) const
const MagickCore::ImageInfo * constImageInfo(void) const
void posterize(const size_t levels_, const DitherMethod method_)
void rotationalBlurChannel(const ChannelType channel_, const double angle_)
void adaptiveSharpen(const double radius_=0.0, const double sigma_=1.0)
std::string fontFamily(void) const
void oilPaint(const double radius_=0.0, const double sigma=1.0)
void contrastStretchChannel(const ChannelType channel_, const double blackPoint_, const double whitePoint_)
MagickCore::Image * replaceImage(MagickCore::Image *replacement_)
void floodFillTexture(const Geometry &point_, const Image &texture_, const bool invert_=false)
void transformScale(const double sx_, const double sy_)
FillRule fillRule(void) const
void encipher(const std::string &passphrase_)
void spread(const double amount_=3.0)
CompressionType compressType(void) const
double compareChannel(const ChannelType channel_, const Image &reference_, const MetricType metric_)
void linearStretch(const double blackPoint_, const double whitePoint_)
void randomThresholdChannel(const ChannelType channel_, const double low_, const double high_)
size_t quantizeTreeDepth(void) const
void extent(const Geometry &geometry_)
void colorMatrix(const size_t order_, const double *color_matrix_)
void pixelColor(const ::ssize_t x_, const ::ssize_t y_, const Color &color_)
std::string baseFilename(void) const
Image strokePattern(void) const
void fontTypeMetricsMultiline(const std::string &text_, TypeMetric *metrics)
Geometry page(void) const
void motionBlur(const double radius_, const double sigma_, const double angle_)
void perceptibleChannel(const ChannelType channel_, const double epsilon_)
void emboss(const double radius_=0.0, const double sigma_=1.0)
ImageType identifyType(void) const
void polaroid(const std::string &caption_, const double angle_, const PixelInterpolateMethod method_)
void levelColors(const Color &blackColor_, const Color &whiteColor_, const bool invert_=true)
void segment(const double clusterThreshold_=1.0, const double smoothingThreshold_=1.5)
void grayscale(const PixelIntensityMethod method_)
void clampChannel(const ChannelType channel_)
double strokeDashOffset(void) const
void channelDepth(const ChannelType channel_, const size_t depth_)
void orderedDither(std::string thresholdMap_)
DitherMethod quantizeDitherMethod(void) const
void stegano(const Image &watermark_)
void sharpen(const double radius_=0.0, const double sigma_=1.0)
size_t subImage(void) const
void resample(const Point &density_)
MagickCore::Image *& image(void)
void floodFillAlpha(const ::ssize_t x_, const ::ssize_t y_, const unsigned int alpha_, const bool invert_=false)
bool isOpaque(void) const
MagickPPExport int operator<=(const Magick::Color &left_, const Magick::Color &right_)
void solarize(const double factor_=50.0)
double fontPointsize(void) const
void updateNoCopy(void *data_, const size_t length_, const Allocator allocator_=NewAllocator)
MagickPPExport int operator>=(const Magick::Color &left_, const Magick::Color &right_)
void stereo(const Image &rightImage_)
void defineSet(const std::string &magick_, const std::string &key_, bool flag_)
void quantize(const bool measureError_=false)
void read(const Blob &blob_)
void autoGammaChannel(const ChannelType channel_)
void frame(const Geometry &geometry_=frameGeometryDefault)
void orderedDitherChannel(const ChannelType channel_, std::string thresholdMap_)
#define ThrowPPDrawException(quiet)
Blob iptcProfile(void) const
Quantum * getPixels(const ::ssize_t x_, const ::ssize_t y_, const size_t columns_, const size_t rows_)
LineCap strokeLineCap(void) const
void shave(const Geometry &geometry_)
std::string textEncoding(void) const
void tint(const std::string opacity_)
void perceptible(const double epsilon_)
void blackThreshold(const std::string &threshold_)
class MagickPPExport Geometry
void sharpenChannel(const ChannelType channel_, const double radius_=0.0, const double sigma_=1.0)
FilterType filterType(void) const
double xResolution(void) const
bool quantizeDither(void) const
InterlaceType interlaceType(void) const
void fillPattern(const Image &fillPattern_)
const void * getConstMetacontent(void) const
std::string format(void) const
void blackThresholdChannel(const ChannelType channel_, const std::string &threshold_)
void edge(const double radius_=0.0)
size_t colorMapSize(void) const
void kuwahara(const double radius_=0.0, const double sigma_=1.0)
std::string signature(const bool force_=false) const
void texture(const Image &texture_)
void xOff(::ssize_t xOff_)
void sepiaTone(const double threshold_)
size_t totalColors(void) const
PixelInterpolateMethod interpolate(void) const
void transparentChroma(const Color &colorLow_, const Color &colorHigh_)
void sy(const double sy_)
void shadow(const double percentAlpha_=80.0, const double sigma_=0.5, const ssize_t x_=5, const ssize_t y_=5)
void whiteThresholdChannel(const ChannelType channel_, const std::string &threshold_)
void scale(const Geometry &geometry_)
MagickCore::ImageInfo * imageInfo(void)
Image subImageSearch(const Image &reference_, const MetricType metric_, Geometry *offset_, double *similarityMetric_, const double similarityThreshold=(-1.0))
void unsharpmaskChannel(const ChannelType channel_, const double radius_, const double sigma_, const double amount_, const double threshold_)
void transformRotation(const double angle_)
void artifact(const std::string &name_, const std::string &value_)
double textKerning(void) const
double colorFuzz(void) const
void sx(const double sx_)
void cannyEdge(const double radius_=0.0, const double sigma_=1.0, const double lowerPercent_=0.1, const double upperPercent_=0.3)
MagickPPExport const char * frameGeometryDefault
const MagickCore::QuantizeInfo * constQuantizeInfo(void) const
void draw(const Drawable &drawable_)
void randomThreshold(const double low_, const double high_)
MagickPPExport void throwExceptionExplicit(const MagickCore::ExceptionType severity_, const char *reason_, const char *description_=(char *) NULL)
void evaluate(const ChannelType channel_, const MagickEvaluateOperator operator_, double rvalue_)
void rotationalBlur(const double angle_)
ColorspaceType colorSpaceType(void) const
Geometry boundingBox(void) const
void implode(const double factor_)
void addNoiseChannel(const ChannelType channel_, const NoiseType noiseType_, const double attenuate_=1.0)
Color strokeColor(void) const
double normalizedMeanError(void) const
#define ClonePPDrawException(wand)
void masklightColor(const Color color_)
void chromaBluePrimary(const double x_, const double y_, const double z_)
const double * strokeDashArray(void) const
void levelize(const double blackPoint_, const double whitePoint_, const double gamma_=1.0)
void adaptiveSharpenChannel(const ChannelType channel_, const double radius_=0.0, const double sigma_=1.0)
void wave(const double amplitude_=25.0, const double wavelength_=150.0)
void threshold(const double threshold_)
void convolve(const size_t order_, const double *kernel_)
void roll(const Geometry &roll_)
void rx(const double rx_)
double yResolution(void) const
void gaussianBlurChannel(const ChannelType channel_, const double radius_, const double sigma_)
void thumbnail(const Geometry &geometry_)
void alphaChannel(AlphaChannelOption alphaOption_)
CompositeOperator compose(void) const
bool blackPointCompensation(void) const
void adaptiveBlur(const double radius_=0.0, const double sigma_=1.0)
void ping(const std::string &imageSpec_)
void selectiveBlur(const double radius_, const double sigma_, const double threshold_)
void transparent(const Color &color_, const bool inverse_=false)
void inverseFourierTransform(const Image &phase_)
void colorize(const unsigned int alpha_, const Color &penColor_)
DirectionType textDirection() const
#define GetAndSetPPChannelMask(channel)
void cdl(const std::string &cdl_)
Geometry geometry(void) const
size_t animationIterations(void) const
void distort(const DistortMethod method_, const size_t numberArguments_, const double *arguments_, const bool bestfit_=false)
void isValid(const bool isValid_)
void border(const Geometry &geometry_=borderGeometryDefault)
void addNoise(const NoiseType noiseType_, const double attenuate_=1.0)
Color backgroundColor(void) const
void sample(const Geometry &geometry_)
void clut(const Image &clutImage_, const PixelInterpolateMethod method)
void affineTransform(const DrawableAffine &affine)
double normalizedMaxError(void) const
void isValid(const bool valid_)
size_t columns(void) const
Magick::ImagePerceptualHash perceptualHash() const
void attribute(const std::string name_, const char *value_)
void houghLine(const size_t width_, const size_t height_, const size_t threshold_=40)
void levelizeChannel(const ChannelType channel_, const double blackPoint_, const double whitePoint_, const double gamma_=1.0)
Color fillColor(void) const
Geometry montageGeometry(void) const
void sketch(const double radius_=0.0, const double sigma_=1.0, const double angle_=0.0)
const void * data(void) const
Image fillPattern(void) const
std::string formatExpression(const std::string expression)
LineJoin strokeLineJoin(void) const
void blueShift(const double factor_=1.5)
static ImageRef * replaceImage(ImageRef *imgRef, MagickCore::Image *replacement_)
void ry(const double ry_)
void chromaRedPrimary(const double x_, const double y_, const double z_)
size_t baseColumns(void) const
double textInterwordSpacing(void) const
MagickPPExport int operator>(const Magick::Color &left_, const Magick::Color &right_)
MagickPPExport int operator==(const Magick::Color &left_, const Magick::Color &right_)
ResolutionType resolutionUnits(void) const
class MagickPPExport Point
Quantum * setPixels(const ::ssize_t x_, const ::ssize_t y_, const size_t columns_, const size_t rows_)
class MagickPPExport Image
void chromaWhitePoint(const double x_, const double y_, const double z_)
void autoLevelChannel(const ChannelType channel_)
void negateChannel(const ChannelType channel_, const bool grayscale_=false)
std::string x11Display(void) const
size_t fontWeight(void) const
double textInterlineSpacing(void) const
GravityType textGravity() const
void brightnessContrast(const double brightness_=0.0, const double contrast_=0.0)
MagickCore::QuantizeInfo * quantizeInfo(void)
size_t length(void) const
void floodFillColor(const Geometry &point_, const Color &fillColor_, const bool invert_=false)
ClassType classType(void) const
void levelChannel(const ChannelType channel_, const double blackPoint_, const double whitePoint_, const double gamma_=1.0)
void sigmoidalContrast(const bool sharpen_, const double contrast, const double midpoint=QuantumRange/2.0)
void channel(const ChannelType channel_)
void strokePattern(const Image &strokePattern_)
void * getMetacontent(void)
void options(Options *options_)
void charcoalChannel(const ChannelType channel_, const double radius_=0.0, const double sigma_=1.0)
bool hasChannel(const PixelChannel channel) const
void deskew(const double threshold_)
size_t baseRows(void) const
void fontTypeMetrics(const std::string &text_, TypeMetric *metrics)
void transformOrigin(const double x_, const double y_)
void opaque(const Color &opaqueColor_, const Color &penColor_, const bool invert_=false)
void colorMap(const size_t index_, const Color &color_)
double strokeWidth(void) const
void isValid(bool isValid_)
void copyPixels(const Image &source_, const Geometry &geometry_, const Offset &offset_)
ColorspaceType quantizeColorSpace(void) const
bool monochrome(void) const
void cycleColormap(const ::ssize_t amount_)
void level(const double blackPoint_, const double whitePoint_, const double gamma_=1.0)
bool strokeAntiAlias(void) const
bool compare(const Image &reference_) const
void contrastStretch(const double blackPoint_, const double whitePoint_)
void selectiveBlurChannel(const ChannelType channel_, const double radius_, const double sigma_, const double threshold_)
void levelColorsChannel(const ChannelType channel_, const Color &blackColor_, const Color &whiteColor_, const bool invert_=true)
Color boxColor(void) const
void haldClut(const Image &clutImage_)
void transformSkewY(const double skewy_)
void shear(const double xShearAngle_, const double yShearAngle_)
#define SetPPChannelMask(channel)
DisposeType gifDisposeMethod(void) const
Geometry size(void) const
void transformReset(void)
void rotate(const double degrees_)
void map(const Image &mapImage_, const bool dither_=false)
void lowlightColor(const Color color_)