CS代考计算机代写 compiler /***************************************************************************/

/***************************************************************************/
/* */
/* ftimage.h */
/* */
/* FreeType glyph image formats and default raster interface */
/* (specification). */
/* */
/* Copyright 1996-2015 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
/* modified, and distributed under the terms of the FreeType project */
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
/* this file you indicate that you have read the license and */
/* understand and accept it fully. */
/* */
/***************************************************************************/

/*************************************************************************/
/* */
/* Note: A `raster’ is simply a scan-line converter, used to render */
/* FT_Outlines into FT_Bitmaps. */
/* */
/*************************************************************************/

#ifndef __FTIMAGE_H__
#define __FTIMAGE_H__

/* _STANDALONE_ is from ftgrays.c */
#ifndef _STANDALONE_
#include
#endif

FT_BEGIN_HEADER

/*************************************************************************/
/* */
/*

*/
/* basic_types */
/* */
/*************************************************************************/

/*************************************************************************/
/* */
/* */
/* FT_Pos */
/* */
/* */
/* The type FT_Pos is used to store vectorial coordinates. Depending */
/* on the context, these can represent distances in integer font */
/* units, or 16.16, or 26.6 fixed-point pixel coordinates. */
/* */
typedef signed long FT_Pos;

/*************************************************************************/
/* */
/* */
/* FT_Vector */
/* */
/* */
/* A simple structure used to store a 2D vector; coordinates are of */
/* the FT_Pos type. */
/* */
/* */
/* x :: The horizontal coordinate. */
/* y :: The vertical coordinate. */
/* */
typedef struct FT_Vector_
{
FT_Pos x;
FT_Pos y;

} FT_Vector;

/*************************************************************************/
/* */
/* */
/* FT_BBox */
/* */
/* */
/* A structure used to hold an outline’s bounding box, i.e., the */
/* coordinates of its extrema in the horizontal and vertical */
/* directions. */
/* */
/* */
/* xMin :: The horizontal minimum (left-most). */
/* */
/* yMin :: The vertical minimum (bottom-most). */
/* */
/* xMax :: The horizontal maximum (right-most). */
/* */
/* yMax :: The vertical maximum (top-most). */
/* */
/* */
/* The bounding box is specified with the coordinates of the lower */
/* left and the upper right corner. In PostScript, those values are */
/* often called (llx,lly) and (urx,ury), respectively. */
/* */
/* If `yMin’ is negative, this value gives the glyph’s descender. */
/* Otherwise, the glyph doesn’t descend below the baseline. */
/* Similarly, if `ymax’ is positive, this value gives the glyph’s */
/* ascender. */
/* */
/* `xMin’ gives the horizontal distance from the glyph’s origin to */
/* the left edge of the glyph’s bounding box. If `xMin’ is negative, */
/* the glyph extends to the left of the origin. */
/* */
typedef struct FT_BBox_
{
FT_Pos xMin, yMin;
FT_Pos xMax, yMax;

} FT_BBox;

/*************************************************************************/
/* */
/* */
/* FT_Pixel_Mode */
/* */
/* */
/* An enumeration type used to describe the format of pixels in a */
/* given bitmap. Note that additional formats may be added in the */
/* future. */
/* */
/* */
/* FT_PIXEL_MODE_NONE :: */
/* Value~0 is reserved. */
/* */
/* FT_PIXEL_MODE_MONO :: */
/* A monochrome bitmap, using 1~bit per pixel. Note that pixels */
/* are stored in most-significant order (MSB), which means that */
/* the left-most pixel in a byte has value 128. */
/* */
/* FT_PIXEL_MODE_GRAY :: */
/* An 8-bit bitmap, generally used to represent anti-aliased glyph */
/* images. Each pixel is stored in one byte. Note that the number */
/* of `gray’ levels is stored in the `num_grays’ field of the */
/* @FT_Bitmap structure (it generally is 256). */
/* */
/* FT_PIXEL_MODE_GRAY2 :: */
/* A 2-bit per pixel bitmap, used to represent embedded */
/* anti-aliased bitmaps in font files according to the OpenType */
/* specification. We haven’t found a single font using this */
/* format, however. */
/* */
/* FT_PIXEL_MODE_GRAY4 :: */
/* A 4-bit per pixel bitmap, representing embedded anti-aliased */
/* bitmaps in font files according to the OpenType specification. */
/* We haven’t found a single font using this format, however. */
/* */
/* FT_PIXEL_MODE_LCD :: */
/* An 8-bit bitmap, representing RGB or BGR decimated glyph images */
/* used for display on LCD displays; the bitmap is three times */
/* wider than the original glyph image. See also */
/* @FT_RENDER_MODE_LCD. */
/* */
/* FT_PIXEL_MODE_LCD_V :: */
/* An 8-bit bitmap, representing RGB or BGR decimated glyph images */
/* used for display on rotated LCD displays; the bitmap is three */
/* times taller than the original glyph image. See also */
/* @FT_RENDER_MODE_LCD_V. */
/* */
/* FT_PIXEL_MODE_BGRA :: */
/* An image with four 8-bit channels per pixel, representing a */
/* color image (such as emoticons) with alpha channel. For each */
/* pixel, the format is BGRA, which means, the blue channel comes */
/* first in memory. The color channels are pre-multiplied and in */
/* the sRGB colorspace. For example, full red at half-translucent */
/* opacity will be represented as `00,00,80,80′, not `00,00,FF,80′. */
/* See also @FT_LOAD_COLOR. */
/* */
typedef enum FT_Pixel_Mode_
{
FT_PIXEL_MODE_NONE = 0,
FT_PIXEL_MODE_MONO,
FT_PIXEL_MODE_GRAY,
FT_PIXEL_MODE_GRAY2,
FT_PIXEL_MODE_GRAY4,
FT_PIXEL_MODE_LCD,
FT_PIXEL_MODE_LCD_V,
FT_PIXEL_MODE_BGRA,

FT_PIXEL_MODE_MAX /* do not remove */

} FT_Pixel_Mode;

/* these constants are deprecated; use the corresponding `FT_Pixel_Mode’ */
/* values instead. */
#define ft_pixel_mode_none FT_PIXEL_MODE_NONE
#define ft_pixel_mode_mono FT_PIXEL_MODE_MONO
#define ft_pixel_mode_grays FT_PIXEL_MODE_GRAY
#define ft_pixel_mode_pal2 FT_PIXEL_MODE_GRAY2
#define ft_pixel_mode_pal4 FT_PIXEL_MODE_GRAY4

/*************************************************************************/
/* */
/* */
/* FT_Bitmap */
/* */
/* */
/* A structure used to describe a bitmap or pixmap to the raster. */
/* Note that we now manage pixmaps of various depths through the */
/* `pixel_mode’ field. */
/* */
/* */
/* rows :: The number of bitmap rows. */
/* */
/* width :: The number of pixels in bitmap row. */
/* */
/* pitch :: The pitch’s absolute value is the number of bytes */
/* taken by one bitmap row, including padding. */
/* However, the pitch is positive when the bitmap has */
/* a `down’ flow, and negative when it has an `up’ */
/* flow. In all cases, the pitch is an offset to add */
/* to a bitmap pointer in order to go down one row. */
/* */
/* Note that `padding’ means the alignment of a */
/* bitmap to a byte border, and FreeType functions */
/* normally align to the smallest possible integer */
/* value. */
/* */
/* For the B/W rasterizer, `pitch’ is always an even */
/* number. */
/* */
/* To change the pitch of a bitmap (say, to make it a */
/* multiple of 4), use @FT_Bitmap_Convert. */
/* Alternatively, you might use callback functions to */
/* directly render to the application’s surface; see */
/* the file `example2.cpp’ in the tutorial for a */
/* demonstration. */
/* */
/* buffer :: A typeless pointer to the bitmap buffer. This */
/* value should be aligned on 32-bit boundaries in */
/* most cases. */
/* */
/* num_grays :: This field is only used with */
/* @FT_PIXEL_MODE_GRAY; it gives the number of gray */
/* levels used in the bitmap. */
/* */
/* pixel_mode :: The pixel mode, i.e., how pixel bits are stored. */
/* See @FT_Pixel_Mode for possible values. */
/* */
/* palette_mode :: This field is intended for paletted pixel modes; */
/* it indicates how the palette is stored. Not */
/* used currently. */
/* */
/* palette :: A typeless pointer to the bitmap palette; this */
/* field is intended for paletted pixel modes. Not */
/* used currently. */
/* */
typedef struct FT_Bitmap_
{
unsigned int rows;
unsigned int width;
int pitch;
unsigned char* buffer;
unsigned short num_grays;
unsigned char pixel_mode;
unsigned char palette_mode;
void* palette;

} FT_Bitmap;

/*************************************************************************/
/* */
/*

*/
/* outline_processing */
/* */
/*************************************************************************/

/*************************************************************************/
/* */
/* */
/* FT_Outline */
/* */
/* */
/* This structure is used to describe an outline to the scan-line */
/* converter. */
/* */
/* */
/* n_contours :: The number of contours in the outline. */
/* */
/* n_points :: The number of points in the outline. */
/* */
/* points :: A pointer to an array of `n_points’ @FT_Vector */
/* elements, giving the outline’s point coordinates. */
/* */
/* tags :: A pointer to an array of `n_points’ chars, giving */
/* each outline point’s type. */
/* */
/* If bit~0 is unset, the point is `off’ the curve, */
/* i.e., a Bézier control point, while it is `on’ if */
/* set. */
/* */
/* Bit~1 is meaningful for `off’ points only. If set, */
/* it indicates a third-order Bézier arc control point; */
/* and a second-order control point if unset. */
/* */
/* If bit~2 is set, bits 5-7 contain the drop-out mode */
/* (as defined in the OpenType specification; the value */
/* is the same as the argument to the SCANMODE */
/* instruction). */
/* */
/* Bits 3 and~4 are reserved for internal purposes. */
/* */
/* contours :: An array of `n_contours’ shorts, giving the end */
/* point of each contour within the outline. For */
/* example, the first contour is defined by the points */
/* `0′ to `contours[0]’, the second one is defined by */
/* the points `contours[0]+1′ to `contours[1]’, etc. */
/* */
/* flags :: A set of bit flags used to characterize the outline */
/* and give hints to the scan-converter and hinter on */
/* how to convert/grid-fit it. See @FT_OUTLINE_XXX. */
/* */
/* */
/* The B/W rasterizer only checks bit~2 in the `tags’ array for the */
/* first point of each contour. The drop-out mode as given with */
/* @FT_OUTLINE_IGNORE_DROPOUTS, @FT_OUTLINE_SMART_DROPOUTS, and */
/* @FT_OUTLINE_INCLUDE_STUBS in `flags’ is then overridden. */
/* */
typedef struct FT_Outline_
{
short n_contours; /* number of contours in glyph */
short n_points; /* number of points in the glyph */

FT_Vector* points; /* the outline’s points */
char* tags; /* the points flags */
short* contours; /* the contour end points */

int flags; /* outline masks */

} FT_Outline;

/* */

/* Following limits must be consistent with */
/* FT_Outline.{n_contours,n_points} */
#define FT_OUTLINE_CONTOURS_MAX SHRT_MAX
#define FT_OUTLINE_POINTS_MAX SHRT_MAX

/*************************************************************************/
/* */
/* */
/* FT_OUTLINE_XXX */
/* */
/* */
/* A list of bit-field constants use for the flags in an outline’s */
/* `flags’ field. */
/* */
/* */
/* FT_OUTLINE_NONE :: */
/* Value~0 is reserved. */
/* */
/* FT_OUTLINE_OWNER :: */
/* If set, this flag indicates that the outline’s field arrays */
/* (i.e., `points’, `flags’, and `contours’) are `owned’ by the */
/* outline object, and should thus be freed when it is destroyed. */
/* */
/* FT_OUTLINE_EVEN_ODD_FILL :: */
/* By default, outlines are filled using the non-zero winding rule. */
/* If set to 1, the outline will be filled using the even-odd fill */
/* rule (only works with the smooth rasterizer). */
/* */
/* FT_OUTLINE_REVERSE_FILL :: */
/* By default, outside contours of an outline are oriented in */
/* clock-wise direction, as defined in the TrueType specification. */
/* This flag is set if the outline uses the opposite direction */
/* (typically for Type~1 fonts). This flag is ignored by the scan */
/* converter. */
/* */
/* FT_OUTLINE_IGNORE_DROPOUTS :: */
/* By default, the scan converter will try to detect drop-outs in */
/* an outline and correct the glyph bitmap to ensure consistent */
/* shape continuity. If set, this flag hints the scan-line */
/* converter to ignore such cases. See below for more information. */
/* */
/* FT_OUTLINE_SMART_DROPOUTS :: */
/* Select smart dropout control. If unset, use simple dropout */
/* control. Ignored if @FT_OUTLINE_IGNORE_DROPOUTS is set. See */
/* below for more information. */
/* */
/* FT_OUTLINE_INCLUDE_STUBS :: */
/* If set, turn pixels on for `stubs’, otherwise exclude them. */
/* Ignored if @FT_OUTLINE_IGNORE_DROPOUTS is set. See below for */
/* more information. */
/* */
/* FT_OUTLINE_HIGH_PRECISION :: */
/* This flag indicates that the scan-line converter should try to */
/* convert this outline to bitmaps with the highest possible */
/* quality. It is typically set for small character sizes. Note */
/* that this is only a hint that might be completely ignored by a */
/* given scan-converter. */
/* */
/* FT_OUTLINE_SINGLE_PASS :: */
/* This flag is set to force a given scan-converter to only use a */
/* single pass over the outline to render a bitmap glyph image. */
/* Normally, it is set for very large character sizes. It is only */
/* a hint that might be completely ignored by a given */
/* scan-converter. */
/* */
/* */
/* The flags @FT_OUTLINE_IGNORE_DROPOUTS, @FT_OUTLINE_SMART_DROPOUTS, */
/* and @FT_OUTLINE_INCLUDE_STUBS are ignored by the smooth */
/* rasterizer. */
/* */
/* There exists a second mechanism to pass the drop-out mode to the */
/* B/W rasterizer; see the `tags’ field in @FT_Outline. */
/* */
/* Please refer to the description of the `SCANTYPE’ instruction in */
/* the OpenType specification (in file `ttinst1.doc’) how simple */
/* drop-outs, smart drop-outs, and stubs are defined. */
/* */
#define FT_OUTLINE_NONE 0x0
#define FT_OUTLINE_OWNER 0x1
#define FT_OUTLINE_EVEN_ODD_FILL 0x2
#define FT_OUTLINE_REVERSE_FILL 0x4
#define FT_OUTLINE_IGNORE_DROPOUTS 0x8
#define FT_OUTLINE_SMART_DROPOUTS 0x10
#define FT_OUTLINE_INCLUDE_STUBS 0x20

#define FT_OUTLINE_HIGH_PRECISION 0x100
#define FT_OUTLINE_SINGLE_PASS 0x200

/* these constants are deprecated; use the corresponding */
/* `FT_OUTLINE_XXX’ values instead */
#define ft_outline_none FT_OUTLINE_NONE
#define ft_outline_owner FT_OUTLINE_OWNER
#define ft_outline_even_odd_fill FT_OUTLINE_EVEN_ODD_FILL
#define ft_outline_reverse_fill FT_OUTLINE_REVERSE_FILL
#define ft_outline_ignore_dropouts FT_OUTLINE_IGNORE_DROPOUTS
#define ft_outline_high_precision FT_OUTLINE_HIGH_PRECISION
#define ft_outline_single_pass FT_OUTLINE_SINGLE_PASS

/* */

#define FT_CURVE_TAG( flag ) ( flag & 3 )

#define FT_CURVE_TAG_ON 1
#define FT_CURVE_TAG_CONIC 0
#define FT_CURVE_TAG_CUBIC 2

#define FT_CURVE_TAG_HAS_SCANMODE 4

#define FT_CURVE_TAG_TOUCH_X 8 /* reserved for the TrueType hinter */
#define FT_CURVE_TAG_TOUCH_Y 16 /* reserved for the TrueType hinter */

#define FT_CURVE_TAG_TOUCH_BOTH ( FT_CURVE_TAG_TOUCH_X | \
FT_CURVE_TAG_TOUCH_Y )

#define FT_Curve_Tag_On FT_CURVE_TAG_ON
#define FT_Curve_Tag_Conic FT_CURVE_TAG_CONIC
#define FT_Curve_Tag_Cubic FT_CURVE_TAG_CUBIC
#define FT_Curve_Tag_Touch_X FT_CURVE_TAG_TOUCH_X
#define FT_Curve_Tag_Touch_Y FT_CURVE_TAG_TOUCH_Y

/*************************************************************************/
/* */
/* */
/* FT_Outline_MoveToFunc */
/* */
/* */
/* A function pointer type used to describe the signature of a `move */
/* to’ function during outline walking/decomposition. */
/* */
/* A `move to’ is emitted to start a new contour in an outline. */
/* */
/* */
/* to :: A pointer to the target point of the `move to’. */
/* */
/* user :: A typeless pointer, which is passed from the caller of the */
/* decomposition function. */
/* */
/* */
/* Error code. 0~means success. */
/* */
typedef int
(*FT_Outline_MoveToFunc)( const FT_Vector* to,
void* user );

#define FT_Outline_MoveTo_Func FT_Outline_MoveToFunc

/*************************************************************************/
/* */
/* */
/* FT_Outline_LineToFunc */
/* */
/* */
/* A function pointer type used to describe the signature of a `line */
/* to’ function during outline walking/decomposition. */
/* */
/* A `line to’ is emitted to indicate a segment in the outline. */
/* */
/* */
/* to :: A pointer to the target point of the `line to’. */
/* */
/* user :: A typeless pointer, which is passed from the caller of the */
/* decomposition function. */
/* */
/* */
/* Error code. 0~means success. */
/* */
typedef int
(*FT_Outline_LineToFunc)( const FT_Vector* to,
void* user );

#define FT_Outline_LineTo_Func FT_Outline_LineToFunc

/*************************************************************************/
/* */
/* */
/* FT_Outline_ConicToFunc */
/* */
/* */
/* A function pointer type used to describe the signature of a `conic */
/* to’ function during outline walking or decomposition. */
/* */
/* A `conic to’ is emitted to indicate a second-order Bézier arc in */
/* the outline. */
/* */
/* */
/* control :: An intermediate control point between the last position */
/* and the new target in `to’. */
/* */
/* to :: A pointer to the target end point of the conic arc. */
/* */
/* user :: A typeless pointer, which is passed from the caller of */
/* the decomposition function. */
/* */
/* */
/* Error code. 0~means success. */
/* */
typedef int
(*FT_Outline_ConicToFunc)( const FT_Vector* control,
const FT_Vector* to,
void* user );

#define FT_Outline_ConicTo_Func FT_Outline_ConicToFunc

/*************************************************************************/
/* */
/* */
/* FT_Outline_CubicToFunc */
/* */
/* */
/* A function pointer type used to describe the signature of a `cubic */
/* to’ function during outline walking or decomposition. */
/* */
/* A `cubic to’ is emitted to indicate a third-order Bézier arc. */
/* */
/* */
/* control1 :: A pointer to the first Bézier control point. */
/* */
/* control2 :: A pointer to the second Bézier control point. */
/* */
/* to :: A pointer to the target end point. */
/* */
/* user :: A typeless pointer, which is passed from the caller of */
/* the decomposition function. */
/* */
/* */
/* Error code. 0~means success. */
/* */
typedef int
(*FT_Outline_CubicToFunc)( const FT_Vector* control1,
const FT_Vector* control2,
const FT_Vector* to,
void* user );

#define FT_Outline_CubicTo_Func FT_Outline_CubicToFunc

/*************************************************************************/
/* */
/* */
/* FT_Outline_Funcs */
/* */
/* */
/* A structure to hold various function pointers used during outline */
/* decomposition in order to emit segments, conic, and cubic Béziers. */
/* */
/* */
/* move_to :: The `move to’ emitter. */
/* */
/* line_to :: The segment emitter. */
/* */
/* conic_to :: The second-order Bézier arc emitter. */
/* */
/* cubic_to :: The third-order Bézier arc emitter. */
/* */
/* shift :: The shift that is applied to coordinates before they */
/* are sent to the emitter. */
/* */
/* delta :: The delta that is applied to coordinates before they */
/* are sent to the emitter, but after the shift. */
/* */
/* */
/* The point coordinates sent to the emitters are the transformed */
/* version of the original coordinates (this is important for high */
/* accuracy during scan-conversion). The transformation is simple: */
/* */
/* { */
/* x’ = (x << shift) - delta */ /* y' = (x << shift) - delta */ /* } */ /* */ /* Set the values of `shift' and `delta' to~0 to get the original */ /* point coordinates. */ /* */ typedef struct FT_Outline_Funcs_ { FT_Outline_MoveToFunc move_to; FT_Outline_LineToFunc line_to; FT_Outline_ConicToFunc conic_to; FT_Outline_CubicToFunc cubic_to; int shift; FT_Pos delta; } FT_Outline_Funcs; /*************************************************************************/ /* */ /*

*/
/* basic_types */
/* */
/*************************************************************************/

/*************************************************************************/
/* */
/* */
/* FT_IMAGE_TAG */
/* */
/* */
/* This macro converts four-letter tags to an unsigned long type. */
/* */
/* */
/* Since many 16-bit compilers don’t like 32-bit enumerations, you */
/* should redefine this macro in case of problems to something like */
/* this: */
/* */
/* { */
/* #define FT_IMAGE_TAG( value, _x1, _x2, _x3, _x4 ) value */
/* } */
/* */
/* to get a simple enumeration without assigning special numbers. */
/* */
#ifndef FT_IMAGE_TAG
#define FT_IMAGE_TAG( value, _x1, _x2, _x3, _x4 ) \
value = ( ( (unsigned long)_x1 << 24 ) | \ ( (unsigned long)_x2 << 16 ) | \ ( (unsigned long)_x3 << 8 ) | \ (unsigned long)_x4 ) #endif /* FT_IMAGE_TAG */ /*************************************************************************/ /* */ /* */
/* FT_Glyph_Format */
/* */
/* */
/* An enumeration type used to describe the format of a given glyph */
/* image. Note that this version of FreeType only supports two image */
/* formats, even though future font drivers will be able to register */
/* their own format. */
/* */
/* */
/* FT_GLYPH_FORMAT_NONE :: */
/* The value~0 is reserved. */
/* */
/* FT_GLYPH_FORMAT_COMPOSITE :: */
/* The glyph image is a composite of several other images. This */
/* format is _only_ used with @FT_LOAD_NO_RECURSE, and is used to */
/* report compound glyphs (like accented characters). */
/* */
/* FT_GLYPH_FORMAT_BITMAP :: */
/* The glyph image is a bitmap, and can be described as an */
/* @FT_Bitmap. You generally need to access the `bitmap’ field of */
/* the @FT_GlyphSlotRec structure to read it. */
/* */
/* FT_GLYPH_FORMAT_OUTLINE :: */
/* The glyph image is a vectorial outline made of line segments */
/* and Bézier arcs; it can be described as an @FT_Outline; you */
/* generally want to access the `outline’ field of the */
/* @FT_GlyphSlotRec structure to read it. */
/* */
/* FT_GLYPH_FORMAT_PLOTTER :: */
/* The glyph image is a vectorial path with no inside and outside */
/* contours. Some Type~1 fonts, like those in the Hershey family, */
/* contain glyphs in this format. These are described as */
/* @FT_Outline, but FreeType isn’t currently capable of rendering */
/* them correctly. */
/* */
typedef enum FT_Glyph_Format_
{
FT_IMAGE_TAG( FT_GLYPH_FORMAT_NONE, 0, 0, 0, 0 ),

FT_IMAGE_TAG( FT_GLYPH_FORMAT_COMPOSITE, ‘c’, ‘o’, ‘m’, ‘p’ ),
FT_IMAGE_TAG( FT_GLYPH_FORMAT_BITMAP, ‘b’, ‘i’, ‘t’, ‘s’ ),
FT_IMAGE_TAG( FT_GLYPH_FORMAT_OUTLINE, ‘o’, ‘u’, ‘t’, ‘l’ ),
FT_IMAGE_TAG( FT_GLYPH_FORMAT_PLOTTER, ‘p’, ‘l’, ‘o’, ‘t’ )

} FT_Glyph_Format;

/* these constants are deprecated; use the corresponding */
/* `FT_Glyph_Format’ values instead. */
#define ft_glyph_format_none FT_GLYPH_FORMAT_NONE
#define ft_glyph_format_composite FT_GLYPH_FORMAT_COMPOSITE
#define ft_glyph_format_bitmap FT_GLYPH_FORMAT_BITMAP
#define ft_glyph_format_outline FT_GLYPH_FORMAT_OUTLINE
#define ft_glyph_format_plotter FT_GLYPH_FORMAT_PLOTTER

/*************************************************************************/
/*************************************************************************/
/*************************************************************************/
/***** *****/
/***** R A S T E R D E F I N I T I O N S *****/
/***** *****/
/*************************************************************************/
/*************************************************************************/
/*************************************************************************/

/*************************************************************************/
/* */
/* A raster is a scan converter, in charge of rendering an outline into */
/* a a bitmap. This section contains the public API for rasters. */
/* */
/* Note that in FreeType 2, all rasters are now encapsulated within */
/* specific modules called `renderers’. See `ftrender.h’ for more */
/* details on renderers. */
/* */
/*************************************************************************/

/*************************************************************************/
/* */
/*

*/
/* raster */
/* */
/* */<br /> /* Scanline Converter */<br /> /* */<br /> /* <Abstract> */<br /> /* How vectorial outlines are converted into bitmaps and pixmaps. */<br /> /* */<br /> /* <Description> */<br /> /* This section contains technical definitions. */<br /> /* */<br /> /* <Order> */<br /> /* FT_Raster */<br /> /* FT_Span */<br /> /* FT_SpanFunc */<br /> /* */<br /> /* FT_Raster_Params */<br /> /* FT_RASTER_FLAG_XXX */<br /> /* */<br /> /* FT_Raster_NewFunc */<br /> /* FT_Raster_DoneFunc */<br /> /* FT_Raster_ResetFunc */<br /> /* FT_Raster_SetModeFunc */<br /> /* FT_Raster_RenderFunc */<br /> /* FT_Raster_Funcs */<br /> /* */<br /> /*************************************************************************/</p> <p> /*************************************************************************/<br /> /* */<br /> /* <Type> */<br /> /* FT_Raster */<br /> /* */<br /> /* <Description> */<br /> /* An opaque handle (pointer) to a raster object. Each object can be */<br /> /* used independently to convert an outline into a bitmap or pixmap. */<br /> /* */<br /> typedef struct FT_RasterRec_* FT_Raster;</p> <p> /*************************************************************************/<br /> /* */<br /> /* <Struct> */<br /> /* FT_Span */<br /> /* */<br /> /* <Description> */<br /> /* A structure used to model a single span of gray pixels when */<br /> /* rendering an anti-aliased bitmap. */<br /> /* */<br /> /* <Fields> */<br /> /* x :: The span’s horizontal start position. */<br /> /* */<br /> /* len :: The span’s length in pixels. */<br /> /* */<br /> /* coverage :: The span color/coverage, ranging from 0 (background) */<br /> /* to 255 (foreground). */<br /> /* */<br /> /* <Note> */<br /> /* This structure is used by the span drawing callback type named */<br /> /* @FT_SpanFunc that takes the y~coordinate of the span as a */<br /> /* parameter. */<br /> /* */<br /> /* The coverage value is always between 0 and 255. If you want less */<br /> /* gray values, the callback function has to reduce them. */<br /> /* */<br /> typedef struct FT_Span_<br /> {<br /> short x;<br /> unsigned short len;<br /> unsigned char coverage;</p> <p> } FT_Span;</p> <p> /*************************************************************************/<br /> /* */<br /> /* <FuncType> */<br /> /* FT_SpanFunc */<br /> /* */<br /> /* <Description> */<br /> /* A function used as a call-back by the anti-aliased renderer in */<br /> /* order to let client applications draw themselves the gray pixel */<br /> /* spans on each scan line. */<br /> /* */<br /> /* <Input> */<br /> /* y :: The scanline’s y~coordinate. */<br /> /* */<br /> /* count :: The number of spans to draw on this scanline. */<br /> /* */<br /> /* spans :: A table of `count’ spans to draw on the scanline. */<br /> /* */<br /> /* user :: User-supplied data that is passed to the callback. */<br /> /* */<br /> /* <Note> */<br /> /* This callback allows client applications to directly render the */<br /> /* gray spans of the anti-aliased bitmap to any kind of surfaces. */<br /> /* */<br /> /* This can be used to write anti-aliased outlines directly to a */<br /> /* given background bitmap, and even perform translucency. */<br /> /* */<br /> /* Note that the `count’ field cannot be greater than a fixed value */<br /> /* defined by the `FT_MAX_GRAY_SPANS’ configuration macro in */<br /> /* `ftoption.h’. By default, this value is set to~32, which means */<br /> /* that if there are more than 32~spans on a given scanline, the */<br /> /* callback is called several times with the same `y’ parameter in */<br /> /* order to draw all callbacks. */<br /> /* */<br /> /* Otherwise, the callback is only called once per scan-line, and */<br /> /* only for those scanlines that do have `gray’ pixels on them. */<br /> /* */<br /> typedef void<br /> (*FT_SpanFunc)( int y,<br /> int count,<br /> const FT_Span* spans,<br /> void* user );</p> <p>#define FT_Raster_Span_Func FT_SpanFunc</p> <p> /*************************************************************************/<br /> /* */<br /> /* <FuncType> */<br /> /* FT_Raster_BitTest_Func */<br /> /* */<br /> /* <Description> */<br /> /* Deprecated, unimplemented. */<br /> /* */<br /> typedef int<br /> (*FT_Raster_BitTest_Func)( int y,<br /> int x,<br /> void* user );</p> <p> /*************************************************************************/<br /> /* */<br /> /* <FuncType> */<br /> /* FT_Raster_BitSet_Func */<br /> /* */<br /> /* <Description> */<br /> /* Deprecated, unimplemented. */<br /> /* */<br /> typedef void<br /> (*FT_Raster_BitSet_Func)( int y,<br /> int x,<br /> void* user );</p> <p> /*************************************************************************/<br /> /* */<br /> /* <Enum> */<br /> /* FT_RASTER_FLAG_XXX */<br /> /* */<br /> /* <Description> */<br /> /* A list of bit flag constants as used in the `flags’ field of a */<br /> /* @FT_Raster_Params structure. */<br /> /* */<br /> /* <Values> */<br /> /* FT_RASTER_FLAG_DEFAULT :: This value is 0. */<br /> /* */<br /> /* FT_RASTER_FLAG_AA :: This flag is set to indicate that an */<br /> /* anti-aliased glyph image should be */<br /> /* generated. Otherwise, it will be */<br /> /* monochrome (1-bit). */<br /> /* */<br /> /* FT_RASTER_FLAG_DIRECT :: This flag is set to indicate direct */<br /> /* rendering. In this mode, client */<br /> /* applications must provide their own span */<br /> /* callback. This lets them directly */<br /> /* draw or compose over an existing bitmap. */<br /> /* If this bit is not set, the target */<br /> /* pixmap’s buffer _must_ be zeroed before */<br /> /* rendering. */<br /> /* */<br /> /* Direct rendering is only possible with */<br /> /* anti-aliased glyphs. */<br /> /* */<br /> /* FT_RASTER_FLAG_CLIP :: This flag is only used in direct */<br /> /* rendering mode. If set, the output will */<br /> /* be clipped to a box specified in the */<br /> /* `clip_box’ field of the */<br /> /* @FT_Raster_Params structure. */<br /> /* */<br /> /* Note that by default, the glyph bitmap */<br /> /* is clipped to the target pixmap, except */<br /> /* in direct rendering mode where all spans */<br /> /* are generated if no clipping box is set. */<br /> /* */<br /> #define FT_RASTER_FLAG_DEFAULT 0x0<br /> #define FT_RASTER_FLAG_AA 0x1<br /> #define FT_RASTER_FLAG_DIRECT 0x2<br /> #define FT_RASTER_FLAG_CLIP 0x4</p> <p> /* these constants are deprecated; use the corresponding */<br /> /* `FT_RASTER_FLAG_XXX’ values instead */<br /> #define ft_raster_flag_default FT_RASTER_FLAG_DEFAULT<br /> #define ft_raster_flag_aa FT_RASTER_FLAG_AA<br /> #define ft_raster_flag_direct FT_RASTER_FLAG_DIRECT<br /> #define ft_raster_flag_clip FT_RASTER_FLAG_CLIP</p> <p> /*************************************************************************/<br /> /* */<br /> /* <Struct> */<br /> /* FT_Raster_Params */<br /> /* */<br /> /* <Description> */<br /> /* A structure to hold the arguments used by a raster’s render */<br /> /* function. */<br /> /* */<br /> /* <Fields> */<br /> /* target :: The target bitmap. */<br /> /* */<br /> /* source :: A pointer to the source glyph image (e.g., an */<br /> /* @FT_Outline). */<br /> /* */<br /> /* flags :: The rendering flags. */<br /> /* */<br /> /* gray_spans :: The gray span drawing callback. */<br /> /* */<br /> /* black_spans :: Unused. */<br /> /* */<br /> /* bit_test :: Unused. */<br /> /* */<br /> /* bit_set :: Unused. */<br /> /* */<br /> /* user :: User-supplied data that is passed to each drawing */<br /> /* callback. */<br /> /* */<br /> /* clip_box :: An optional clipping box. It is only used in */<br /> /* direct rendering mode. Note that coordinates here */<br /> /* should be expressed in _integer_ pixels (and not in */<br /> /* 26.6 fixed-point units). */<br /> /* */<br /> /* <Note> */<br /> /* An anti-aliased glyph bitmap is drawn if the @FT_RASTER_FLAG_AA */<br /> /* bit flag is set in the `flags’ field, otherwise a monochrome */<br /> /* bitmap is generated. */<br /> /* */<br /> /* If the @FT_RASTER_FLAG_DIRECT bit flag is set in `flags’, the */<br /> /* raster will call the `gray_spans’ callback to draw gray pixel */<br /> /* spans. This allows direct composition over a pre-existing bitmap */<br /> /* through user-provided callbacks to perform the span drawing and */<br /> /* composition. Not supported by the monochrome rasterizer. */<br /> /* */<br /> typedef struct FT_Raster_Params_<br /> {<br /> const FT_Bitmap* target;<br /> const void* source;<br /> int flags;<br /> FT_SpanFunc gray_spans;<br /> FT_SpanFunc black_spans; /* unused */<br /> FT_Raster_BitTest_Func bit_test; /* unused */<br /> FT_Raster_BitSet_Func bit_set; /* unused */<br /> void* user;<br /> FT_BBox clip_box;</p> <p> } FT_Raster_Params;</p> <p> /*************************************************************************/<br /> /* */<br /> /* <FuncType> */<br /> /* FT_Raster_NewFunc */<br /> /* */<br /> /* <Description> */<br /> /* A function used to create a new raster object. */<br /> /* */<br /> /* <Input> */<br /> /* memory :: A handle to the memory allocator. */<br /> /* */<br /> /* <Output> */<br /> /* raster :: A handle to the new raster object. */<br /> /* */<br /> /* <Return> */<br /> /* Error code. 0~means success. */<br /> /* */<br /> /* <Note> */<br /> /* The `memory’ parameter is a typeless pointer in order to avoid */<br /> /* un-wanted dependencies on the rest of the FreeType code. In */<br /> /* practice, it is an @FT_Memory object, i.e., a handle to the */<br /> /* standard FreeType memory allocator. However, this field can be */<br /> /* completely ignored by a given raster implementation. */<br /> /* */<br /> typedef int<br /> (*FT_Raster_NewFunc)( void* memory,<br /> FT_Raster* raster );</p> <p>#define FT_Raster_New_Func FT_Raster_NewFunc</p> <p> /*************************************************************************/<br /> /* */<br /> /* <FuncType> */<br /> /* FT_Raster_DoneFunc */<br /> /* */<br /> /* <Description> */<br /> /* A function used to destroy a given raster object. */<br /> /* */<br /> /* <Input> */<br /> /* raster :: A handle to the raster object. */<br /> /* */<br /> typedef void<br /> (*FT_Raster_DoneFunc)( FT_Raster raster );</p> <p>#define FT_Raster_Done_Func FT_Raster_DoneFunc</p> <p> /*************************************************************************/<br /> /* */<br /> /* <FuncType> */<br /> /* FT_Raster_ResetFunc */<br /> /* */<br /> /* <Description> */<br /> /* FreeType used to provide an area of memory called the `render */<br /> /* pool’ available to all registered rasters. This was not thread */<br /> /* safe however and now FreeType never allocates this pool. NULL */<br /> /* is always passed in as pool_base. */<br /> /* */<br /> /* This function is called each time the render pool changes, or just */<br /> /* after a new raster object is created. */<br /> /* */<br /> /* <Input> */<br /> /* raster :: A handle to the new raster object. */<br /> /* */<br /> /* pool_base :: The address in memory of the render pool. */<br /> /* */<br /> /* pool_size :: The size in bytes of the render pool. */<br /> /* */<br /> /* <Note> */<br /> /* Rasters should ignore the render pool and rely on dynamic or stack */<br /> /* allocation if they want to (a handle to the memory allocator is */<br /> /* passed to the raster constructor). */<br /> /* */<br /> typedef void<br /> (*FT_Raster_ResetFunc)( FT_Raster raster,<br /> unsigned char* pool_base,<br /> unsigned long pool_size );</p> <p>#define FT_Raster_Reset_Func FT_Raster_ResetFunc</p> <p> /*************************************************************************/<br /> /* */<br /> /* <FuncType> */<br /> /* FT_Raster_SetModeFunc */<br /> /* */<br /> /* <Description> */<br /> /* This function is a generic facility to change modes or attributes */<br /> /* in a given raster. This can be used for debugging purposes, or */<br /> /* simply to allow implementation-specific `features’ in a given */<br /> /* raster module. */<br /> /* */<br /> /* <Input> */<br /> /* raster :: A handle to the new raster object. */<br /> /* */<br /> /* mode :: A 4-byte tag used to name the mode or property. */<br /> /* */<br /> /* args :: A pointer to the new mode/property to use. */<br /> /* */<br /> typedef int<br /> (*FT_Raster_SetModeFunc)( FT_Raster raster,<br /> unsigned long mode,<br /> void* args );</p> <p>#define FT_Raster_Set_Mode_Func FT_Raster_SetModeFunc</p> <p> /*************************************************************************/<br /> /* */<br /> /* <FuncType> */<br /> /* FT_Raster_RenderFunc */<br /> /* */<br /> /* <Description> */<br /> /* Invoke a given raster to scan-convert a given glyph image into a */<br /> /* target bitmap. */<br /> /* */<br /> /* <Input> */<br /> /* raster :: A handle to the raster object. */<br /> /* */<br /> /* params :: A pointer to an @FT_Raster_Params structure used to */<br /> /* store the rendering parameters. */<br /> /* */<br /> /* <Return> */<br /> /* Error code. 0~means success. */<br /> /* */<br /> /* <Note> */<br /> /* The exact format of the source image depends on the raster’s glyph */<br /> /* format defined in its @FT_Raster_Funcs structure. It can be an */<br /> /* @FT_Outline or anything else in order to support a large array of */<br /> /* glyph formats. */<br /> /* */<br /> /* Note also that the render function can fail and return a */<br /> /* `FT_Err_Unimplemented_Feature’ error code if the raster used does */<br /> /* not support direct composition. */<br /> /* */<br /> /* XXX: For now, the standard raster doesn’t support direct */<br /> /* composition but this should change for the final release (see */<br /> /* the files `demos/src/ftgrays.c’ and `demos/src/ftgrays2.c’ */<br /> /* for examples of distinct implementations that support direct */<br /> /* composition). */<br /> /* */<br /> typedef int<br /> (*FT_Raster_RenderFunc)( FT_Raster raster,<br /> const FT_Raster_Params* params );</p> <p>#define FT_Raster_Render_Func FT_Raster_RenderFunc</p> <p> /*************************************************************************/<br /> /* */<br /> /* <Struct> */<br /> /* FT_Raster_Funcs */<br /> /* */<br /> /* <Description> */<br /> /* A structure used to describe a given raster class to the library. */<br /> /* */<br /> /* <Fields> */<br /> /* glyph_format :: The supported glyph format for this raster. */<br /> /* */<br /> /* raster_new :: The raster constructor. */<br /> /* */<br /> /* raster_reset :: Used to reset the render pool within the raster. */<br /> /* */<br /> /* raster_render :: A function to render a glyph into a given bitmap. */<br /> /* */<br /> /* raster_done :: The raster destructor. */<br /> /* */<br /> typedef struct FT_Raster_Funcs_<br /> {<br /> FT_Glyph_Format glyph_format;<br /> FT_Raster_NewFunc raster_new;<br /> FT_Raster_ResetFunc raster_reset;<br /> FT_Raster_SetModeFunc raster_set_mode;<br /> FT_Raster_RenderFunc raster_render;<br /> FT_Raster_DoneFunc raster_done;</p> <p> } FT_Raster_Funcs;</p> <p> /* */</p> <p>FT_END_HEADER</p> <p>#endif /* __FTIMAGE_H__ */</p> <p>/* END */</p> <p>/* Local Variables: */<br /> /* coding: utf-8 */<br /> /* End: */</p> </div><!-- .entry-content .clear --> </div> </article><!-- #post-## --> <nav class="navigation post-navigation" aria-label="Post navigation"> <span class="screen-reader-text">Post navigation</span> <div class="nav-links"><div class="nav-previous"><a title="CS代考计算机代写 /* Child process of page-parallel." href="https://powcoder.com/2021/02/13/cs%e4%bb%a3%e8%80%83%e8%ae%a1%e7%ae%97%e6%9c%ba%e4%bb%a3%e5%86%99-child-process-of-page-parallel/" rel="prev"><span class="ast-left-arrow">←</span> Previous Post</a></div><div class="nav-next"><a title="CS代考计算机代写 /*" href="https://powcoder.com/2021/02/13/cs%e4%bb%a3%e8%80%83%e8%ae%a1%e7%ae%97%e6%9c%ba%e4%bb%a3%e5%86%99-59/" rel="next">Next Post <span class="ast-right-arrow">→</span></a></div></div> </nav><div class="ast-single-related-posts-container ast-container--fallback"><div class="ast-related-posts-title-section"> <h2 class="ast-related-posts-title"> Related Posts </h2> </div><div class="ast-related-posts-wrapper"> <article class="ast-related-post post-38 post type-post status-publish format-standard hentry category-uncategorized tag-matlab tag-simulation"> <div class="ast-related-posts-inner-section"> <div class="ast-related-post-content"> <div class="ast-related-post-featured-section ast-no-thumb"></div> <header class="entry-header related-entry-header"> <h3 class="ast-related-post-title entry-title"> <a href="https://powcoder.com/2016/06/21/matlab-simulation/" target="_self" rel="bookmark noopener noreferrer">matlab simulation</a> </h3> <div class="entry-meta ast-related-cat-style--none ast-related-tag-style--none"><span class="ast-taxonomy-container cat-links default"><a href="https://powcoder.com/category/uncategorized/" rel="category tag">程序代写 CS代考</a></span> / <span class="ast-taxonomy-container tags-links default"><a href="https://powcoder.com/tag/matlab/" rel="tag">matlab代写代考</a>, <a href="https://powcoder.com/tag/simulation/" rel="tag">simulation</a></span></div> </header> <div class="entry-content clear"> </div> </div> </div> </article> <article class="ast-related-post post-39 post type-post status-publish format-standard hentry category-uncategorized tag-c"> <div class="ast-related-posts-inner-section"> <div class="ast-related-post-content"> <div class="ast-related-post-featured-section ast-no-thumb"></div> <header class="entry-header related-entry-header"> <h3 class="ast-related-post-title entry-title"> <a href="https://powcoder.com/2016/06/21/ab202-assignment-1-arkapong/" target="_self" rel="bookmark noopener noreferrer">AB202 Assignment 1: Arkapong</a> </h3> <div class="entry-meta ast-related-cat-style--none ast-related-tag-style--none"><span class="ast-taxonomy-container cat-links default"><a href="https://powcoder.com/category/uncategorized/" rel="category tag">程序代写 CS代考</a></span> / <span class="ast-taxonomy-container tags-links default"><a href="https://powcoder.com/tag/c/" rel="tag">c++代做</a></span></div> </header> <div class="entry-content clear"> </div> </div> </div> </article> <article class="ast-related-post post-40 post type-post status-publish format-standard hentry category-uncategorized tag-c"> <div class="ast-related-posts-inner-section"> <div class="ast-related-post-content"> <div class="ast-related-post-featured-section ast-no-thumb"></div> <header class="entry-header related-entry-header"> <h3 class="ast-related-post-title entry-title"> <a href="https://powcoder.com/2016/06/21/msc-c-programming/" target="_self" rel="bookmark noopener noreferrer">MSc C++ Programming</a> </h3> <div class="entry-meta ast-related-cat-style--none ast-related-tag-style--none"><span class="ast-taxonomy-container cat-links default"><a href="https://powcoder.com/category/uncategorized/" rel="category tag">程序代写 CS代考</a></span> / <span class="ast-taxonomy-container tags-links default"><a href="https://powcoder.com/tag/c/" rel="tag">c++代做</a></span></div> </header> <div class="entry-content clear"> </div> </div> </div> </article> <article class="ast-related-post post-41 post type-post status-publish format-standard hentry category-uncategorized tag-prolog"> <div class="ast-related-posts-inner-section"> <div class="ast-related-post-content"> <div class="ast-related-post-featured-section ast-no-thumb"></div> <header class="entry-header related-entry-header"> <h3 class="ast-related-post-title entry-title"> <a href="https://powcoder.com/2016/06/21/msc-assessed-prolog-lab-exercise-2/" target="_self" rel="bookmark noopener noreferrer">MSc Assessed Prolog Lab Exercise 2</a> </h3> <div class="entry-meta ast-related-cat-style--none ast-related-tag-style--none"><span class="ast-taxonomy-container cat-links default"><a href="https://powcoder.com/category/uncategorized/" rel="category tag">程序代写 CS代考</a></span> / <span class="ast-taxonomy-container tags-links default"><a href="https://powcoder.com/tag/prolog/" rel="tag">Prolog代写代考</a></span></div> </header> <div class="entry-content clear"> </div> </div> </div> </article> <article class="ast-related-post post-49 post type-post status-publish format-standard hentry category-uncategorized tag-c tag-uml"> <div class="ast-related-posts-inner-section"> <div class="ast-related-post-content"> <div class="ast-related-post-featured-section ast-no-thumb"></div> <header class="entry-header related-entry-header"> <h3 class="ast-related-post-title entry-title"> <a href="https://powcoder.com/2016/06/21/spring-session2015assignment-1/" target="_self" rel="bookmark noopener noreferrer">Spring Session:2015:Assignment 1</a> </h3> <div class="entry-meta ast-related-cat-style--none ast-related-tag-style--none"><span class="ast-taxonomy-container cat-links default"><a href="https://powcoder.com/category/uncategorized/" rel="category tag">程序代写 CS代考</a></span> / <span class="ast-taxonomy-container tags-links default"><a href="https://powcoder.com/tag/c/" rel="tag">c++代做</a>, <a href="https://powcoder.com/tag/uml/" rel="tag">UML</a></span></div> </header> <div class="entry-content clear"> </div> </div> </div> </article> <article class="ast-related-post post-51 post type-post status-publish format-standard hentry category-uncategorized tag-uml"> <div class="ast-related-posts-inner-section"> <div class="ast-related-post-content"> <div class="ast-related-post-featured-section ast-no-thumb"></div> <header class="entry-header related-entry-header"> <h3 class="ast-related-post-title entry-title"> <a href="https://powcoder.com/2016/06/21/assignment-2-inception-and-elaboration/" target="_self" rel="bookmark noopener noreferrer">Assignment 2: "Inception and Elaboration"</a> </h3> <div class="entry-meta ast-related-cat-style--none ast-related-tag-style--none"><span class="ast-taxonomy-container cat-links default"><a href="https://powcoder.com/category/uncategorized/" rel="category tag">程序代写 CS代考</a></span> / <span class="ast-taxonomy-container tags-links default"><a href="https://powcoder.com/tag/uml/" rel="tag">UML</a></span></div> </header> <div class="entry-content clear"> </div> </div> </div> </article> <article class="ast-related-post post-55 post type-post status-publish format-standard hentry category-uncategorized tag-android tag-java"> <div class="ast-related-posts-inner-section"> <div class="ast-related-post-content"> <div class="ast-related-post-featured-section ast-no-thumb"></div> <header class="entry-header related-entry-header"> <h3 class="ast-related-post-title entry-title"> <a href="https://powcoder.com/2016/06/21/android-app/" target="_self" rel="bookmark noopener noreferrer">android app</a> </h3> <div class="entry-meta ast-related-cat-style--none ast-related-tag-style--none"><span class="ast-taxonomy-container cat-links default"><a href="https://powcoder.com/category/uncategorized/" rel="category tag">程序代写 CS代考</a></span> / <span class="ast-taxonomy-container tags-links default"><a href="https://powcoder.com/tag/android/" rel="tag">android</a>, <a href="https://powcoder.com/tag/java/" rel="tag">Java代写代考</a></span></div> </header> <div class="entry-content clear"> </div> </div> </div> </article> <article class="ast-related-post post-57 post type-post status-publish format-standard hentry category-uncategorized tag-java tag-junit"> <div class="ast-related-posts-inner-section"> <div class="ast-related-post-content"> <div class="ast-related-post-featured-section ast-no-thumb"></div> <header class="entry-header related-entry-header"> <h3 class="ast-related-post-title entry-title"> <a href="https://powcoder.com/2016/06/21/comp220-software-development-tools/" target="_self" rel="bookmark noopener noreferrer">COMP220: Software Development Tools</a> </h3> <div class="entry-meta ast-related-cat-style--none ast-related-tag-style--none"><span class="ast-taxonomy-container cat-links default"><a href="https://powcoder.com/category/uncategorized/" rel="category tag">程序代写 CS代考</a></span> / <span class="ast-taxonomy-container tags-links default"><a href="https://powcoder.com/tag/java/" rel="tag">Java代写代考</a>, <a href="https://powcoder.com/tag/junit/" rel="tag">junit</a></span></div> </header> <div class="entry-content clear"> </div> </div> </div> </article> </div> </div> </main><!-- #main --> </div><!-- #primary --> <div class="widget-area secondary" id="secondary" itemtype="https://schema.org/WPSideBar" itemscope="itemscope"> <div class="sidebar-main" > <aside id="custom_html-2" class="widget_text widget widget_custom_html"><h2 class="widget-title">Contact</h2><div class="textwidget custom-html-widget"><ul> <li><strong>QQ: 1823890830</strong></li> <li><strong>微信号(WeChat): powcoder</strong></li> <li><img data-recalc-dims="1" class="alignnone wp-image-366" src="https://i0.wp.com/powcoder.com/wp-content/uploads/2021/01/powcoder.jpg?resize=133%2C133&ssl=1" alt="myweixin" width="133" height="133"/></li> <li><strong>Email: <a href="mailto:powcoder@163.com">powcoder@163.com</a></strong></li> </ul> <ul> <li><strong>请加微信或QQ发要求</strong></li> <li><strong>Contact me through WeChat</strong></li> </ul> </div></aside><aside id="categories-2" class="widget widget_categories"><h2 class="widget-title">Categories</h2><nav aria-label="Categories"> <ul> <li class="cat-item cat-item-245"><a href="https://powcoder.com/category/machine-learning/">机器学习代写代考 machine learning</a> </li> <li class="cat-item cat-item-242"><a href="https://powcoder.com/category/database-db-sql/">数据库代写代考 DB Database SQL</a> </li> <li class="cat-item cat-item-244"><a href="https://powcoder.com/category/data-structure-algorithm/">数据结构算法代写代考 data structure algorithm</a> </li> <li class="cat-item cat-item-239"><a href="https://powcoder.com/category/%e4%ba%ba%e5%b7%a5%e6%99%ba%e8%83%bd-ai-artificial-intelligence/">人工智能 AI Artificial Intelligence</a> </li> <li class="cat-item cat-item-247"><a href="https://powcoder.com/category/compiler/">编译器原理 Compiler</a> </li> <li class="cat-item cat-item-254"><a href="https://powcoder.com/category/network-socket/">计算机网络 套接字编程 computer network socket programming</a> </li> <li class="cat-item cat-item-240"><a href="https://powcoder.com/category/hadoop-map-reduce-spark-hbase/">大数据 Hadoop Map Reduce Spark HBase</a> </li> <li class="cat-item cat-item-241"><a href="https://powcoder.com/category/%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9fosoperating-system/">操作系统OS代写代考 (Operating System)</a> </li> <li class="cat-item cat-item-250"><a href="https://powcoder.com/category/computer-architecture/">计算机体系结构代写代考 Computer Architecture</a> </li> <li class="cat-item cat-item-251"><a href="https://powcoder.com/category/computer-graphics-opengl-webgl/">计算机图形学 Computer Graphics opengl webgl</a> </li> <li class="cat-item cat-item-249"><a href="https://powcoder.com/category/nlp/">自然语言处理 NLP natural language processing</a> </li> <li class="cat-item cat-item-383"><a href="https://powcoder.com/category/%e5%b9%b6%e8%a1%8c%e8%ae%a1%e7%ae%97/">并行计算</a> </li> <li class="cat-item cat-item-253"><a href="https://powcoder.com/category/computation-theory/">计算理论 Theory of Computation</a> </li> <li class="cat-item cat-item-252"><a href="https://powcoder.com/category/computer-security/">计算机安全密码学computer security cryptography</a> </li> <li class="cat-item cat-item-246"><a href="https://powcoder.com/category/sys-programming/">系统编程 System programming</a> </li> <li class="cat-item cat-item-367"><a href="https://powcoder.com/category/%e6%95%b0%e5%80%bc%e7%a7%91%e5%ad%a6%e8%ae%a1%e7%ae%97/">数值科学计算</a> </li> <li class="cat-item cat-item-255"><a href="https://powcoder.com/category/%e8%ae%a1%e7%ae%97%e6%9c%ba%e8%a7%86%e8%a7%89compute-vision/">计算机视觉代写代考(Compute Vision)</a> </li> <li class="cat-item cat-item-248"><a href="https://powcoder.com/category/web/">网页应用 Web Application</a> </li> <li class="cat-item cat-item-401"><a href="https://powcoder.com/category/%e5%88%86%e5%b8%83%e5%bc%8f%e7%b3%bb%e7%bb%9f/">分布式系统</a> </li> <li class="cat-item cat-item-640"><a href="https://powcoder.com/category/%e7%ac%94%e8%af%95%e9%9d%a2%e8%af%95/">笔试面试</a> </li> <li class="cat-item cat-item-403"><a href="https://powcoder.com/category/%e5%87%bd%e6%95%b0%e5%bc%8f%e7%bc%96%e7%a8%8b/">函数式编程</a> </li> <li class="cat-item cat-item-243"><a href="https://powcoder.com/category/%e6%95%b0%e6%8d%ae%e6%8c%96%e6%8e%98-data-mining/">数据挖掘 Data Mining</a> </li> <li class="cat-item cat-item-364"><a href="https://powcoder.com/category/%e7%a6%bb%e6%95%a3%e6%95%b0%e5%ad%a6/">离散数学代写代考 (Discrete mathematics)</a> </li> <li class="cat-item cat-item-384"><a href="https://powcoder.com/category/%e8%bd%af%e4%bb%b6%e5%b7%a5%e7%a8%8b/">软件工程</a> </li> <li class="cat-item cat-item-551"><a href="https://powcoder.com/category/%e7%bc%96%e7%a8%8b%e8%af%ad%e8%a8%80-programming-language/">编程语言 Programming Language</a> </li> <li class="cat-item cat-item-594"><a href="https://powcoder.com/category/%e7%bb%9f%e8%ae%a1%e4%bb%a3%e5%86%99%e4%bb%a3%e8%80%83/">统计代写代考</a> </li> <li class="cat-item cat-item-574"><a href="https://powcoder.com/category/%e8%bf%90%e7%ad%b9%e5%ad%a6-operation-research/">运筹学 Operation Research</a> </li> </ul> </nav></aside><aside id="tag_cloud-3" class="widget widget_tag_cloud"><h2 class="widget-title">Tag</h2><nav aria-label="Tag"><div class="tagcloud"><a href="https://powcoder.com/tag/algorithm/" class="tag-cloud-link tag-link-469 tag-link-position-1" style="font-size: 18px;" aria-label="Algorithm算法代写代考 (15,147 items)">Algorithm算法代写代考</a><a href="https://powcoder.com/tag/java/" class="tag-cloud-link tag-link-298 tag-link-position-2" style="font-size: 16.91156462585px;" aria-label="Java代写代考 (7,275 items)">Java代写代考</a><a href="https://powcoder.com/tag/database/" class="tag-cloud-link tag-link-414 tag-link-position-3" style="font-size: 16.503401360544px;" aria-label="database (5,442 items)">database</a><a href="https://powcoder.com/tag/data-structure/" class="tag-cloud-link tag-link-501 tag-link-position-4" style="font-size: 16.43537414966px;" aria-label="data structure (5,189 items)">data structure</a><a href="https://powcoder.com/tag/python/" class="tag-cloud-link tag-link-331 tag-link-position-5" style="font-size: 16.299319727891px;" aria-label="Python代写代考 (4,817 items)">Python代写代考</a><a href="https://powcoder.com/tag/compiler/" class="tag-cloud-link tag-link-472 tag-link-position-6" style="font-size: 16.027210884354px;" aria-label="compiler (4,000 items)">compiler</a><a href="https://powcoder.com/tag/scheme/" class="tag-cloud-link tag-link-338 tag-link-position-7" style="font-size: 15.823129251701px;" aria-label="Scheme代写代考 (3,502 items)">Scheme代写代考</a><a href="https://powcoder.com/tag/c-4/" class="tag-cloud-link tag-link-499 tag-link-position-8" style="font-size: 15.823129251701px;" aria-label="C语言代写 (3,489 items)">C语言代写</a><a href="https://powcoder.com/tag/ai/" class="tag-cloud-link tag-link-369 tag-link-position-9" style="font-size: 15.176870748299px;" aria-label="AI代写 (2,216 items)">AI代写</a><a href="https://powcoder.com/tag/c-3/" class="tag-cloud-link tag-link-491 tag-link-position-10" style="font-size: 14.700680272109px;" aria-label="c++代写 (1,633 items)">c++代写</a><a href="https://powcoder.com/tag/sql/" class="tag-cloud-link tag-link-395 tag-link-position-11" style="font-size: 14.530612244898px;" aria-label="SQL代写代考 (1,457 items)">SQL代写代考</a><a href="https://powcoder.com/tag/haskell/" class="tag-cloud-link tag-link-291 tag-link-position-12" style="font-size: 14.530612244898px;" aria-label="Haskell代写代考 (1,453 items)">Haskell代写代考</a><a href="https://powcoder.com/tag/javascript/" class="tag-cloud-link tag-link-299 tag-link-position-13" style="font-size: 14.462585034014px;" aria-label="javascript (1,395 items)">javascript</a><a href="https://powcoder.com/tag/concurrency/" class="tag-cloud-link tag-link-503 tag-link-position-14" style="font-size: 14.428571428571px;" aria-label="concurrency (1,355 items)">concurrency</a><a href="https://powcoder.com/tag/matlab/" class="tag-cloud-link tag-link-309 tag-link-position-15" style="font-size: 14.360544217687px;" aria-label="matlab代写代考 (1,281 items)">matlab代写代考</a><a href="https://powcoder.com/tag/finance/" class="tag-cloud-link tag-link-282 tag-link-position-16" style="font-size: 14.292517006803px;" aria-label="finance (1,221 items)">finance</a><a href="https://powcoder.com/tag/interpreter/" class="tag-cloud-link tag-link-297 tag-link-position-17" style="font-size: 14.190476190476px;" aria-label="interpreter (1,144 items)">interpreter</a><a href="https://powcoder.com/tag/mips/" class="tag-cloud-link tag-link-313 tag-link-position-18" style="font-size: 14.190476190476px;" aria-label="MIPS汇编代写代考 (1,138 items)">MIPS汇编代写代考</a><a href="https://powcoder.com/tag/data-mining/" class="tag-cloud-link tag-link-271 tag-link-position-19" style="font-size: 13.986394557823px;" aria-label="data mining (994 items)">data mining</a><a href="https://powcoder.com/tag/decision-tree/" class="tag-cloud-link tag-link-273 tag-link-position-20" style="font-size: 13.952380952381px;" aria-label="decision tree (982 items)">decision tree</a><a href="https://powcoder.com/tag/deep-learning/" class="tag-cloud-link tag-link-274 tag-link-position-21" style="font-size: 13.952380952381px;" aria-label="deep learning深度学习代写代考 (980 items)">deep learning深度学习代写代考</a><a href="https://powcoder.com/tag/prolog/" class="tag-cloud-link tag-link-329 tag-link-position-22" style="font-size: 13.918367346939px;" aria-label="Prolog代写代考 (957 items)">Prolog代写代考</a><a href="https://powcoder.com/tag/file-system/" class="tag-cloud-link tag-link-281 tag-link-position-23" style="font-size: 13.850340136054px;" aria-label="file system (902 items)">file system</a><a href="https://powcoder.com/tag/c/" class="tag-cloud-link tag-link-265 tag-link-position-24" style="font-size: 13.578231292517px;" aria-label="c++代做 (764 items)">c++代做</a><a href="https://powcoder.com/tag/computer-architecture/" class="tag-cloud-link tag-link-507 tag-link-position-25" style="font-size: 13.47619047619px;" aria-label="computer architecture (712 items)">computer architecture</a><a href="https://powcoder.com/tag/er/" class="tag-cloud-link tag-link-433 tag-link-position-26" style="font-size: 13.47619047619px;" aria-label="ER (711 items)">ER</a><a href="https://powcoder.com/tag/gui/" class="tag-cloud-link tag-link-290 tag-link-position-27" style="font-size: 13.47619047619px;" aria-label="gui (711 items)">gui</a><a href="https://powcoder.com/tag/gpu/" class="tag-cloud-link tag-link-396 tag-link-position-28" style="font-size: 13.272108843537px;" aria-label="GPU (620 items)">GPU</a><a href="https://powcoder.com/tag/data-science/" class="tag-cloud-link tag-link-272 tag-link-position-29" style="font-size: 13.272108843537px;" aria-label="data science (615 items)">data science</a><a href="https://powcoder.com/tag/x86%e6%b1%87%e7%bc%96/" class="tag-cloud-link tag-link-514 tag-link-position-30" style="font-size: 13.238095238095px;" aria-label="x86汇编代写代考 (606 items)">x86汇编代写代考</a><a href="https://powcoder.com/tag/case-study/" class="tag-cloud-link tag-link-468 tag-link-position-31" style="font-size: 13.204081632653px;" aria-label="case study (586 items)">case study</a><a href="https://powcoder.com/tag/distributed-system/" class="tag-cloud-link tag-link-277 tag-link-position-32" style="font-size: 13.170068027211px;" aria-label="distributed system (576 items)">distributed system</a><a href="https://powcoder.com/tag/android/" class="tag-cloud-link tag-link-256 tag-link-position-33" style="font-size: 13.034013605442px;" aria-label="android (527 items)">android</a><a href="https://powcoder.com/tag/kernel/" class="tag-cloud-link tag-link-470 tag-link-position-34" style="font-size: 13.034013605442px;" aria-label="kernel (520 items)">kernel</a><a href="https://powcoder.com/tag/arm/" class="tag-cloud-link tag-link-483 tag-link-position-35" style="font-size: 13px;" aria-label="ARM汇编代写代考 (514 items)">ARM汇编代写代考</a></div> </nav></aside><aside id="block-4" class="widget widget_block"> <div class="wp-block-group is-layout-flow wp-block-group-is-layout-flow"><div class="wp-block-group__inner-container"><ul class="wp-block-latest-posts__list wp-block-latest-posts"><li><a class="wp-block-latest-posts__post-title" href="https://powcoder.com/2025/01/19/%e7%a8%8b%e5%ba%8f%e4%bb%a3%e5%86%99-cs7641-assignment-4-markov-decision-processes-fall-2024/">程序代写 CS7641 Assignment 4 Markov Decision Processes Fall 2024</a></li> <li><a class="wp-block-latest-posts__post-title" href="https://powcoder.com/2025/01/19/cs%e4%bb%a3%e5%86%99-cs-0447-computer-organization-and-assembly-language-midterm-project-conne/">CS代写 CS 0447 Computer Organization and Assembly Language Midterm Project – Conne</a></li> <li><a class="wp-block-latest-posts__post-title" href="https://powcoder.com/2024/12/10/cs%e4%bb%a3%e8%80%83-cs-0447-computer-organization-and-assembly-language-midterm-project-conne/">CS代考 CS 0447 Computer Organization and Assembly Language Midterm Project – Conne</a></li> <li><a class="wp-block-latest-posts__post-title" href="https://powcoder.com/2024/12/10/%e8%ae%a1%e7%ae%97%e6%9c%ba%e4%bb%a3%e5%86%99-cs7641-assignment-4-markov-decision-processes-fall-2024/">计算机代写 CS7641 Assignment 4 Markov Decision Processes Fall 2024</a></li> <li><a class="wp-block-latest-posts__post-title" href="https://powcoder.com/2024/12/10/%e8%ae%a1%e7%ae%97%e6%9c%ba%e4%bb%a3%e5%86%99-comp9313-project-3/">计算机代写 COMP9313 Project 3</a></li> </ul></div></div> </aside> </div><!-- .sidebar-main --> </div><!-- #secondary --> </div> <!-- ast-container --> </div><!-- #content --> <footer class="site-footer" id="colophon" itemtype="https://schema.org/WPFooter" itemscope="itemscope" itemid="#colophon"> <div class="site-below-footer-wrap ast-builder-grid-row-container site-footer-focus-item ast-builder-grid-row-full ast-builder-grid-row-tablet-full ast-builder-grid-row-mobile-full ast-footer-row-stack ast-footer-row-tablet-stack ast-footer-row-mobile-stack" data-section="section-below-footer-builder"> <div class="ast-builder-grid-row-container-inner"> <div class="ast-builder-footer-grid-columns site-below-footer-inner-wrap ast-builder-grid-row"> <div class="site-footer-below-section-1 site-footer-section site-footer-section-1"> <div class="ast-builder-layout-element ast-flex site-footer-focus-item ast-footer-copyright" data-section="section-footer-builder"> <div class="ast-footer-copyright"><p>Copyright © 2025 PowCoder代写 | Powered by <a href="https://wpastra.com" rel="nofollow noopener" target="_blank">Astra WordPress Theme</a></p> </div> </div> </div> </div> </div> </div> </footer><!-- #colophon --> </div><!-- #page --> <link rel="stylesheet" href="https://powcoder.com/wp-content/cache/minify/12163.css" media="all" /> <script id="astra-theme-js-js-extra"> var astra = {"break_point":"921","isRtl":"","is_scroll_to_id":"","is_scroll_to_top":"","is_header_footer_builder_active":"1","responsive_cart_click":"flyout"}; </script> <script src="https://powcoder.com/wp-content/cache/minify/75800.js"></script> <script src="https://stats.wp.com/e-202505.js" id="jetpack-stats-js" data-wp-strategy="defer"></script> <script id="jetpack-stats-js-after"> _stq = window._stq || []; _stq.push([ "view", JSON.parse("{\"v\":\"ext\",\"blog\":\"132118579\",\"post\":\"40842\",\"tz\":\"8\",\"srv\":\"powcoder.com\",\"j\":\"1:14.2.1\"}") ]); _stq.push([ "clickTrackerInit", "132118579", "40842" ]); </script> <script> /(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())},!1); </script> </body> </html> <!-- Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/ Object Caching 88/517 objects using Disk Page Caching using Disk: Enhanced Content Delivery Network via N/A Minified using Disk Served from: powcoder.com @ 2025-01-31 03:00:51 by W3 Total Cache -->