ImageMagick: MagickCore, C API for ImageMagick: Paint on an Image
Author: ImageMagick Studio LLC
Description: ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (about 100) including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and DPX. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you can freely use, copy, modify, and distribute. Its license is compatible with the GPL. It runs on all major operating systems. The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite programming language. Choose from these interfaces: MagickCore (C), MagickWand (C), ChMagick (Ch), Magick++ (C++), JMagick (Java), L-Magick (Lisp), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (P [cell cut: 1167 characters, first 1000 kept]
Keywords: magickcore, c, api, for, imagemagick:, paint, on, an, image, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject

## FloodfillPaintImage FloodfillPaintImage() changes the color value of any pixel that matches target and is an immediate neighbor. If the method FillToBorderMethod is specified, the color value is changed for any neighbor pixel that does not match the bordercolor member of image. By default target must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. The fuzz member of image defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color for the purposes of the floodfill. The format of the FloodfillPaintImage method is:
      MagickBooleanType FloodfillPaintImage(Image *image,
        const ChannelType channel,const DrawInfo *draw_info,
        const MagickPixelPacket target,const long x_offset,const long y_offset,
        const MagickBooleanType invert)
A description of each parameter follows: ##### image the image. ##### channel the channel(s). ##### draw_info the draw info. ##### target the RGB value of the target color. ##### x_offset,y_offset the starting location of the operation. ##### invert paint any pixel that does not match the target color. ## OilPaintImage OilPaintImage() applies a special effect filter that simulates an oil painting. Each pixel is replaced by the most frequent color occurring in a circular region defined by radius. The format of the OilPaintImage method is:
      Image *OilPaintImage(const Image *image,const double radius,
        ExceptionInfo *exception)
A description of each parameter follows: ##### image the image. ##### radius the radius of the circular neighborhood. ##### exception Return any errors or warnings in this structure. ## OpaquePaintImage OpaquePaintImage() changes any pixel that matches color with the color defined by fill. By default color must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. Fuzz defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color. The format of the OpaquePaintImage method is:
      MagickBooleanType OpaquePaintImage(Image *image,
        const PixelPacket *target,const PixelPacket *fill,
        const MagickBooleanType invert)
      MagickBooleanType OpaquePaintImageChannel(Image *image,
        const ChannelType channel,const PixelPacket *target,
        const PixelPacket *fill,const MagickBooleanType invert)
A description of each parameter follows: ##### image the image. ##### channel the channel(s). ##### target the RGB value of the target color. ##### fill the replacement color. ##### invert paint any pixel that does not match the target color. ## TransparentPaintImage TransparentPaintImage() changes the opacity value associated with any pixel that matches color to the value defined by opacity. By default color must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. Fuzz defines how much tolerance is acceptable to consider two colors as the same. For example, set fuzz to 10 and the color red at intensities of 100 and 102 respectively are now interpreted as the same color. The format of the TransparentPaintImage method is:
      MagickBooleanType TransparentPaintImage(Image *image,
        const MagickPixelPacket *target,const Quantum opacity,
        const MagickBooleanType invert)
A description of each parameter follows: ##### image the image. ##### target the target color. ##### opacity the replacement opacity value. ##### invert paint any pixel that does not match the target color. |

Discourse Server • Mailing Lists • Cafe • Studio