A
download draw.h
Language: C
LOC: 124
Project Info
bukoo
Server: SourceForge
Type: cvs
...koo\bukoo\jesse_sdk\magick\
   8bim.c
   animate.c
   animate.h
   annotate.c
   api.h
   art.c
   attributes.c
   attributes.h
   avi.c
   avs.c
   blob.c
   blob.h
   bmp.c
   cache.c
   cache.h
   cache_view.c
   cache_view.h
   classify.h
   cmyk.c
   colors.c
   compress.h
   compress_.c
   config.h
   constitute.c
   cut.c
   dcm.c
   decorate.c
   defines.h
   delegates.c
   delegates.h
   display.c
   display.h
   dps.c
   dpx.c
   draw.c
   draw.h
   effects.c
   enhance.c
   ept.c
   error.c
   error.h
   fax.c
   fits.c
   fpx.c
   gems.c
   gems.h
   gif.c
   gradient.c
   gray.c
   hdf.c
   histogram.c
   html.c
   icm.c
   icon.c
   image.c
   image.h
   iptc.c
   jbig.c
   jpeg.c
   label.c
   logo.c
   mac.c
   mac.h
   magic.c
   magic.h
   magick.c
   magick.h
   map.c
   matte.c
   memory.c
   miff.c
   modules.c
   modules.h
   modules.mgk
   monitor.c
   monitor.h
   mono.c
   montage.c
   mpc.c
   mtv.c
   mvg.c
   nt.c
   nt.h
   null.c
   pcd.c
   pcl.c
   pcx.c
   pdb.c
   pdf.c
   pict.c
   pix.c
   plasma.c
   png.c
   pnm.c
   PreRvIcccm.c
   PreRvIcccm.h
   preview.c
   ps.c
   ps2.c
   ps3.c
   psd.c
   pwp.c
   quantize.c
   quantize.h
   rgb.c
   rla.c
   rle.c
   sct.c
   segment.c
   semaphore.c
   semaphore.h
   sfw.c
   sgi.c
   shear.c
   signature.c
   stegano.c
   stream.c
   sun.c
   svg.c
   tga.c
   tiff.c
   tile.c
   tim.c
   timer.c
   timer.h
   transform.c
   ttf.c
   txt.c
   uil.c
   url.c
   utility.c
   utility.h
   uyvy.c
   version.h
   vicar.c
   vid.c
   viff.c
   vms.c
   vms.h
   wbmp.c
   widget.c
   widget.h
   wmf.c
   wpg.c
   x.c
   xbm.c
   xc.c
   xpm.c
   xwd.c
   xwindows.c
   xwindows.h
   yuv.c
   zoom.c

/*
  Drawing methods.
*/
#ifndef _DRAW_H
#define _DRAW_H

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

/*
  Typedef declarations.
*/
typedef struct _EdgeInfo
{
  SegmentInfo
    bounds;

  double
    scanline;

  PointInfo
    *points;

  int
    number_points,
    direction,
    ghostline,
    highwater;
} EdgeInfo;

typedef struct _PolygonInfo
{
  EdgeInfo
    *edges;

  int
    number_edges;
} PolygonInfo;

typedef struct _DrawInfo
{
  char
    *primitive,
    *text,
    *geometry;

  AffineMatrix
    affine;

  GravityType
    gravity;

  Quantum
    opacity;

  Image
    *tile;

  PixelPacket
    fill,
    stroke;

  unsigned int
    stroke_antialias;

  double
    stroke_width;

  FillRule
    fill_rule;

  LineCap
    linecap;

  LineJoin
    linejoin;

  unsigned int
    miterlimit,
    *dash_pattern,
    dash_offset;

  DecorationType
    decorate;

  char
    *font,
    *density;

  unsigned int
    text_antialias;

  double
    pointsize;

  PixelPacket
    box,
    border_color;

  CompositeOperator
    compose;

  char
    *server_name;

  PolygonInfo
    clip_path;

  unsigned int
    debug;

  unsigned long
    signature;
} DrawInfo;

typedef struct _FontMetric
{
  PointInfo
    pixels_per_em;

  int
    ascent,
    descent;

  unsigned int
    width,
    height,
    max_advance;
} FontMetric;

typedef struct _PrimitiveInfo
{
  PointInfo
    point;

  PrimitiveType
    primitive;

  unsigned int
    coordinates;

  PaintMethod
    method;

  char
    *text;
} PrimitiveInfo;

/*
  Method declarations.
*/
extern MagickExport DrawInfo
  *CloneDrawInfo(const ImageInfo *,const DrawInfo *);

extern MagickExport DrawInfo
  *CloneDrawInfo(const ImageInfo *,const DrawInfo *);

extern MagickExport unsigned int
  AnnotateImage(Image *,const DrawInfo *),
  ColorFloodfillImage(Image *,const DrawInfo *,const PixelPacket,const int x,
    const int y,const PaintMethod),
  DrawImage(Image *,const DrawInfo *),
  GetFontMetrics(Image *,const DrawInfo *,FontMetric *),
  MatteFloodfillImage(Image *,const PixelPacket,const unsigned int,const int x,
    const int y,const PaintMethod);

extern MagickExport void
  DestroyDrawInfo(DrawInfo *),
  GetDrawInfo(const ImageInfo *,DrawInfo *);

#if defined(__cplusplus) || defined(c_plusplus)
}
#endif

#endif

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us