From: =?utf-8?q?Bastien_ROUCARI=C3=88S?= Date: Fri, 2 Feb 2018 22:14:03 +0100 Subject: Fix br tag find . -path './.git' -prune -o -type 'f' -name '*.html' -exec sed -i 's,
,
,g' {} \; Forwarded: Yes, https://github.com/ImageMagick/ImageMagick/issues/304 --- www/api/Image++.html | 268 +++++++++++++++++++++++++-------------------------- 1 file changed, 134 insertions(+), 134 deletions(-) Index: imagemagick/www/api/Image++.html =================================================================== --- imagemagick.orig/www/api/Image++.html 2025-10-28 17:06:48.272656265 +0100 +++ imagemagick/www/api/Image++.html 2025-10-28 17:06:48.269503943 +0100 @@ -226,7 +226,7 @@ a constructor or read() . Likewise, a Magick++ image may be written to a Blob via write() . -

An example of using Image to write to a Blob follows:
+

An example of using Image to write to a Blob follows:

 #include  
@@ -248,7 +248,7 @@
   return 0; 
 }
 
-


+


likewise, to read an image from a Blob, you could use one of the following examples:

[ Entry condition for the following examples @@ -277,9 +277,9 @@

Image may be constructed in a number of ways. It may be constructed from a file, a URL, or an encoded image (e.g. JPEG) contained in an -in-memory BLOB . The available Image -constructors are shown in the following table:
-
+in-memory BLOB . The available Image +constructors are shown in the following table:
+
    @@ -340,11 +340,11 @@ string &magick_ -
    Image Constructors
    const size_t width_,
    - const size_t height_,
    - std::string map_,
    - const -StorageType type_,
    +
    const size_t width_,
    + const size_t height_,
    + std::string map_,
    + const +StorageType type_,
    const void *pixels_
    Construct a new Image based on an array of image pixels. The pixel data must be in scanline order top-to-bottom. @@ -354,7 +354,7 @@ unsigned red-green-blue character data, use

    Image image( 640, 480, "RGB", 0, pixels );

    -

    The parameters are as follows:
    +

    The parameters are as follows:
    @@ -410,7 +410,7 @@ image.write("myImage.tiff"); adds gaussian noise to the image file "myImage.tiff". -

    The operations supported by Image are shown in the following table:
    +

    The operations supported by Image are shown in the following table:

      @@ -422,11 +422,11 @@ @@ -450,27 +450,27 @@ @@ -519,10 +519,10 @@ - @@ -701,7 +701,7 @@
      display
      - - - @@ -978,10 +978,10 @@ @@ -1096,17 +1096,17 @@ @@ -1176,10 +1176,10 @@ @@ -1268,7 +1268,7 @@ unsigned red-green-blue character data, use

      image.read( 640, 480, "RGB", CharPixel, pixels );

      -

      The parameters are as follows:
      +

      The parameters are as follows:

      Image Image Manipulation Methods
      adaptiveThreshold
      + size="-1">adaptiveThreshold
      size_t width, size_t -height, size_t offset = 0
      +height, size_t offset = 0
      Apply adaptive thresholding to the image. Adaptive thresholding is useful if the ideal threshold level @@ -437,7 +437,7 @@ and using the mean as the thresholding value. In order to remove residual noise from the background, the threshold may be adjusted by subtracting a constant offset (default zero) from the mean to -compute the threshold.
      +compute the threshold.
      addNoiseChannel
      + name="addNoiseChannel">addNoiseChannel
      const ChannelType -channel_, const NoiseType noiseType_
      +channel_, const NoiseType noiseType_
      Add noise to an image channel with the specified noise type. The channel_ parameter specifies the channel to add noise to. The noiseType_ parameter -specifies the type of noise.
      +specifies the type of noise.
      affineTransform
      + name="affineTransform">affineTransform
      const DrawableAffine -&affine
      +&affine
      Transform image by -specified affine (or free transform) matrix.
      +specified affine (or free transform) matrix.
      blurChannel
      + name="blurChannel">blurChannel
      const ChannelType -channel_, const double radius_ = 0.0, const double sigma_ = 1.0
      +channel_, const double radius_ = 0.0, const double sigma_ = 1.0
      Blur an image channel. The channel_ @@ -610,9 +610,9 @@
      compare
      + name="compare"> compare
      const Image &reference_
      +
      const Image &reference_
      Compare current image with another image. Sets meanErrorPerPixel @@ -621,7 +621,7 @@ image. False is returned if the images are identical. An ErrorOption exception is thrown if the reference image columns, rows, colorspace, or -matte differ from the current image.
      +matte differ from the current image.
      voidDisplay image on screen.
      +
      Display image on screen.
      Caution: if an image format is is not compatible with the display visual (e.g. JPEG on a colormapped display) then the original image will be @@ -804,7 +804,7 @@
      floodFill- -
      +
      Color
      ssize_t x_, ssize_t y_, const
      floodFill- -
      +
      Texture
      ssize_t x_, ssize_t y_, const @@ -924,10 +924,10 @@
      gaussianBlurChannel
      + name="gaussianBlurChannel">gaussianBlurChannel
      const ChannelType -channel_, const double radius_ = 0.0, const double sigma_ = 1.0
      +channel_, const double radius_ = 0.0, const double sigma_ = 1.0
      Gaussian blur an image channel. The
      haldClut
      + name="haldClut"> haldClut
      const Image &reference_
      +
      const Image &reference_
      apply a Hald color lookup table to the image.
      +
      apply a Hald color lookup table to the image.
      level
      + name="level">level
      const double black_point, -const double white_point, const double mid_point=1.0
      +const double white_point, const double mid_point=1.0
      Level image. Adjust the levels of the image by scaling the colors falling between specified @@ -993,16 +993,16 @@ specifies the lightest color in the image. Colors brighter than the white point are set to the maximum quantum value. The black and white point have the valid range 0 to MaxRGB while mid (gamma) has a -useful range of 0 to ten.
      +useful range of 0 to ten.
      levelChannel
      + name="levelChannel">levelChannel
      const ChannelType channel, const double black_point, const double white_point, const -double mid_point=1.0
      +double mid_point=1.0
      Level image channel. Adjust the levels of the image channel by scaling the values falling @@ -1014,7 +1014,7 @@ specifies the lightest color in the image. Colors brighter than the white point are set to the maximum quantum value. The black and white point have the valid range 0 to MaxRGB while mid (gamma) has a useful -range of 0 to ten.
      +range of 0 to ten.
      motionBlur
      + name="motionBlur">motionBlur
      const double radius_, -const double sigma_, const double angle_
      +const double sigma_, const double angle_
      Motion blur image with specified blur factor. The radius_ parameter specifies the radius of the Gaussian, in pixels, not counting the center pixel. The sigma_ parameter specifies the standard deviation of the Laplacian, in pixels. The angle_ parameter specifies the angle the object appears to -be coming from (zero degrees is from the right).
      +be coming from (zero degrees is from the right).
      process
      + name="process">process
      std::string name_, -const ssize_t argc_, char **argv_
      +const ssize_t argc_, char **argv_
      Execute the named process module, passing any arguments via an argument vector, with @@ -1187,7 +1187,7 @@ specifying the number of arguments in the vector, and argv_ passing the address of an array of null-terminated C strings which constitute the argument vector. An exception is thrown if the requested process module -does not exist, fails to load, or fails during execution.
      +does not exist, fails to load, or fails during execution.
      @@ -1313,10 +1313,10 @@ @@ -1376,7 +1376,7 @@ -
      randomThreshold
      + name="randomThreshold">randomThreshold
      const Geometry -&thresholds_
      +&thresholds_
      Random threshold the image. Changes the value of individual pixels based on the intensity of @@ -1325,19 +1325,19 @@ geometry containing LOWxHIGH thresholds. If the string contains 2x2, 3x3, or 4x4, then an ordered dither of order 2, 3, or 4 will be performed instead. This is a very fast alternative to 'quantize' based -dithering.
      +dithering.
      randomThresholdChannel
      + name="randomThresholdChannel">randomThresholdChannel
      const Geometry -&thresholds_, const ChannelType channel_
      +&thresholds_, const ChannelType channel_
      Random threshold an image channel. Similar to randomThreshold() -but restricted to the specified channel.
      +but restricted to the specified channel.
      segment
      double clusterThreshold_ = 1.0,
      +
      double clusterThreshold_ = 1.0,
      double smoothingThreshold_ = 1.5
      Segment (coalesce similar image components) by analyzing the histograms of the color components and identifying @@ -1396,7 +1396,7 @@
      shade
      double azimuth_ = 30, double elevation_ = 30, -
      +
      bool colorShading_ = false
      Shade image using distant light source. Specify azimuth_ and elevation_ as the @@ -1426,10 +1426,10 @@
      sharpenChannel
      + name="sharpenChannel">sharpenChannel
      const ChannelType -channel_, const double radius_ = 0.0, const double sigma_ = 1.0
      +channel_, const double radius_ = 0.0, const double sigma_ = 1.0
      Sharpen pixel quantums in an image channel The
      unsharpmaskChannel
      + name="unsharpmaskChannel">unsharpmaskChannel
      const ChannelType channel_, const double radius_, const double sigma_, const double -amount_, const double threshold_
      +amount_, const double threshold_
      Sharpen an image channel using the unsharp mask algorithm. The const string &imageSpec_ Write image to a file using filename imageSpec_ -.
      +.
      Caution: if an image format is selected which is capable of supporting fewer colors than the original image or quantization has been requested, the @@ -1634,7 +1634,7 @@ href="http://www.imagemagick.org/Magick++/Blob.html"> BLOB stored in blob_. The magick_ parameter specifies the image format to write (defaults to magick ). The depth_ parameter species the image -depth (defaults to depth ).
      +depth (defaults to depth ).
      Caution: if an image format is selected which is capable of supporting fewer colors than the original image or quantization has been requested, the @@ -1660,7 +1660,7 @@ red-green-blue order:

      image.write(0,0,640,1,"RGB",0,pixels);

      -

      The parameters are as follows:
      +

      The parameters are as follows:
      @@ -1738,7 +1738,7 @@ image.write(filename) The supported image attributes and the method arguments required to -obtain them are shown in the following table:
      +obtain them are shown in the following table:
        @@ -1781,7 +1781,7 @@ @@ -1795,7 +1795,7 @@ @@ -1806,12 +1806,12 @@ - @@ -1820,13 +1820,13 @@ image. For example, the image comment is a named image attribute with the name "comment". EXIF tags are attached to the image as named attributes. Use the syntax "EXIF:<tag>" to request an EXIF tag -similar to "EXIF:DateTime".
        +similar to "EXIF:DateTime".
        @@ -1838,7 +1838,7 @@ @@ -1917,16 +1917,16 @@ @@ -1958,7 +1958,7 @@ @@ -1970,7 +1970,7 @@ @@ -1982,7 +1982,7 @@ @@ -2042,14 +2042,14 @@ - - - @@ -2108,7 +2108,7 @@ - - @@ -2362,14 +2362,14 @@ - @@ -2394,7 +2394,7 @@ @@ -2481,16 +2481,16 @@ @@ -2514,7 +2514,7 @@ @@ -2526,7 +2526,7 @@ @@ -2539,7 +2539,7 @@ @@ -2551,18 +2551,18 @@ - + @@ -2573,7 +2573,7 @@ @@ -2616,19 +2616,19 @@ - - @@ -2643,7 +2643,7 @@ @@ -2657,7 +2657,7 @@ @@ -2693,7 +2693,7 @@ @@ -2707,7 +2707,7 @@ - - - @@ -3031,7 +3031,7 @@ should be invoked to reduce the reference count on the underlying image to one. If this is not done, then it is possible for a previous generation of the image to be modified due to the use of reference -counting when copying or constructing an Image.
        +counting when copying or constructing an Image.

        Depending on the capabilities of the operating system, and the relationship of the window to the image, the pixel cache may be a copy @@ -3067,7 +3067,7 @@ image.write("horse.png");

        -

        The image cache supports the following methods:
        +

        The image cache supports the following methods:

          Image Attributes
          animation- -
          +
          Delay
          size_t (0 to 65535)
          animation- -
          +
          Iterations
          size_t
          attribute
          + name="attribute">attribute
          string
          +
          string
          const -std::string name_
          +std::string name_
          const std::string name_, const std::string value_
          background- -
          +
          Color
          Color
          background- -
          +
          Texture
          string
          channelDepth
          + name="channelDepth">channelDepth
          size_t -
          +
          const -ChannelType channel_
          +ChannelType channel_
          const ChannelType -channel_, const size_t depth_
          +channel_, const size_t depth_
          Channel modulus depth. The channel modulus depth represents the minimum number of bits @@ -1940,13 +1940,13 @@ the current modulus depth is obtained by inspecting the pixels. As a result, the depth returned may be less than the most recently set channel depth. Subsequent image processing may result in increasing the -channel depth.
          +channel depth.
          chroma- -
          +
          BluePrimary
          double x & y
          chroma- -
          +
          GreenPrimary
          double x & y
          chroma- -
          +
          RedPrimary
          double x & y
          chroma- -
          +
          WhitePoint
          double x & y
          -
          colorMapSize
          +
          colorMapSize
          size_t
          +
          size_t
          void
          +
          void
          size_t entries_
          +
          size_t entries_
          Number of entries in the colormap. Setting the colormap size may extend or truncate the @@ -2058,7 +2058,7 @@ and is dependent on the value of QuantumDepth when ImageMagick is compiled. An exception is thrown if more entries are requested than may be supported. Care should be taken when truncating the colormap to -ensure that the image colormap indexes reference valid colormap entries.
          +ensure that the image colormap indexes reference valid colormap entries.
          compress- -
          +
          Type
          CompressionType @@ -2132,16 +2132,16 @@
          defineValue
          + name="defineValue">defineValue
          string
          +
          string
          const std::string -&magick_, const std::string &key_
          +&magick_, const std::string &key_
          const std::string &magick_, const std::string &key_, const std::string -&value_
          +&value_
          Set or obtain a definition string to applied when encoding or decoding the specified @@ -2150,20 +2150,20 @@ argument, the format-specific key is designated by key_, and the associated value is specified by value_. See the -defineSet() method if the key must be removed entirely.
          +defineSet() method if the key must be removed entirely.
          defineSet
          + name="defineSet">defineSet
          bool
          +
          bool
          const std::string -&magick_, const std::string &key_
          +&magick_, const std::string &key_
          const std::string -&magick_, const std::string &key_, bool flag_
          +&magick_, const std::string &key_, bool flag_
          Set or obtain a definition flag to applied when encoding or decoding the specified @@ -2174,7 +2174,7 @@ style="font-style: italic;">flag_ value 'false' removes any existing matching definition. The method returns 'true' if a matching key exists, and 'false' if no matching key -exists.
          +exists.
          gifDispose- -
          +
          Method
          size_t
          - { 0 = Disposal not specified,
          - 1 = Do not dispose of graphic,
          +
          size_t
          + { 0 = Disposal not specified,
          + 1 = Do not dispose of graphic,
          3 = Overwrite graphic with background color, -
          +
          4 = Overwrite graphic with previous graphic. }
          void size_t disposeMethod_
          interlace- -
          +
          Type
          InterlaceType @@ -2469,7 +2469,7 @@
          meanError- -
          +
          PerPixel
          double
          modulusDepth
          + size="-1">modulusDepth
          size_t -
          +
          void
          + size="-1">void
          size_t -depth_
          +depth_
          Image modulus depth (minimum number of bits required to support @@ -2499,7 +2499,7 @@ current value, updating the pixels (reducing accuracy) to the new depth. The pixel modulus depth can not be increased over the current value -using this method.
          +using this method.
          montage- -
          +
          Geometry
          Geometry
          normalized- -
          +
          MaxError
          double
          normalized- -
          +
          MeanError
          double
          orientation
          + name="orientation">orientation
          OrientationTypevoid
          + href="https://www.imagemagick.org/Magick++/Enumerations.html#OrientationType">OrientationType
          void
          OrientationType orientation_ Image orientation. Supported by some file formats such as DPX and TIFF. Useful for -turning the right way up.
          +turning the right way up.
          void The number of runlength-encoded packets in -
          +
          the image
          -
          profile
          +
          profile
          Blob
          +
          Blob
          const std::string name_
          +
          const std::string name_
          const std::string name_, const Blob -&colorProfile_
          +&colorProfile_

          Get/set/remove a named profile. Valid names include "*", -"8BIM", "ICM", "IPTC", or a user/format-defined profile name.
          +"8BIM", "ICM", "IPTC", or a user/format-defined profile name.
          quantize- -
          +
          Colors
          size_t
          quantize- -
          +
          ColorSpace
          ColorspaceType @@ -2674,7 +2674,7 @@
          quantize- -
          +
          Dither
          bool
          quantize- -
          +
          TreeDepth
          size_t
          rendering- -
          +
          Intent
          RenderingIntent @@ -2720,7 +2720,7 @@
          resolution- -
          +
          Units
          ResolutionType @@ -2899,14 +2899,14 @@
          -
          textEncoding
          +
          textEncoding
          string
          +
          string
          void
          +
          void
          const std::string &encoding_
          +
          const std::string &encoding_
          Specify the code set to use for text annotations. The only character encoding which may be specified at @@ -2914,7 +2914,7 @@ href="http://www.unicode.org/"> Unicode as a sequence of bytes. Specify an empty string to use the default ASCII encoding. Successful text annotation using Unicode may require fonts -designed to support Unicode.
          +designed to support Unicode.
          Image Cache Methods