s2dbpath.c File Reference

#include "s2dbpath.h"

Go to the source code of this file.

Defines

#define INSIDE(x, y)   (DibGetPixel1(rows,x,y)==target)
#define SAVE   ;

Enumerations

enum  { UP, DOWN, LEFT, RIGHT }

Functions

static void TraceShape (LPBYTE *rows, RECT *rc, LONG x, LONG y, int target, PRTL_BITMAP bits, ITEMARRAY *path)
static void TraceShapeInner (LPBYTE *rows, RECT *rc, LONG x, LONG y, int target, PRTL_BITMAP bits, ITEMARRAY *path)
static void FloodFillOuter (LPBYTE *rows, RECT *rc, LONG x, LONG y, int target, PRTL_BITMAP bits, PRTL_BITMAP fillbits)
static void FloodFillInnerCheck (LPBYTE *rows, RECT *rc, LONG x, LONG y, int target, PRTL_BITMAP fillbits, LONG *px, LONG *py, LONG *mnx, LONG *mny)
static BOOL PathFromBitmapIntersectRect (RECT *dst, RECT *src1, RECT *src2)
BOOL PathFromBitmap (IMAGEBUFFERINFO *ibi, RECT *rcExtent, int target, ITEMARRAY *path)
 Generates a vector path based on the data in a bitmap.


Define Documentation

#define INSIDE x,
 )     (DibGetPixel1(rows,x,y)==target)
 

Definition at line 27 of file s2dbpath.c.

#define SAVE   ;
 

Definition at line 350 of file s2dbpath.c.


Enumeration Type Documentation

anonymous enum
 

Enumerator:
UP 
DOWN 
LEFT 
RIGHT 

Definition at line 3 of file s2dbpath.c.


Function Documentation

static void FloodFillInnerCheck LPBYTE rows,
RECT rc,
LONG  x,
LONG  y,
int  target,
PRTL_BITMAP  fillbits,
LONG px,
LONG py,
LONG mnx,
LONG mny
[static]
 

Definition at line 256 of file s2dbpath.c.

static void FloodFillOuter LPBYTE rows,
RECT rc,
LONG  x,
LONG  y,
int  target,
PRTL_BITMAP  bits,
PRTL_BITMAP  fillbits
[static]
 

Definition at line 205 of file s2dbpath.c.

BOOL PathFromBitmap IMAGEBUFFERINFO *  ibi,
RECT rcExtent,
int  target,
ITEMARRAY path
 

Generates a vector path based on the data in a bitmap.

Parameters:
ibi Pointer to a one-bit-per-pixel image buffer.
rcExtent A rectangle indicating the desired region from which to extract the path. If NULL, the entire image will be used.
target Specifies which pixel consitutes the interior of the path. Can be either 0 or 1.
path Points to an array of path segments where the function will save the generated path. The function fails if the array's item size doesn't equal that of a PATHSEGMENT structure.
Returns:
FALSE if _ibi_ is NULL or is not a 1-bit-per-pixel bitmap, or if _path_ is NULL; TRUE if successful.

Definition at line 366 of file s2dbpath.c.

static BOOL PathFromBitmapIntersectRect RECT dst,
RECT src1,
RECT src2
[static]
 

Definition at line 352 of file s2dbpath.c.

static void TraceShape LPBYTE rows,
RECT rc,
LONG  x,
LONG  y,
int  target,
PRTL_BITMAP  bits,
ITEMARRAY path
[static]
 

Definition at line 30 of file s2dbpath.c.

static void TraceShapeInner LPBYTE rows,
RECT rc,
LONG  x,
LONG  y,
int  target,
PRTL_BITMAP  bits,
ITEMARRAY path
[static]
 

Definition at line 118 of file s2dbpath.c.


Generated on Thu Mar 27 01:46:58 2008 for Item Arrays by  doxygen 1.4.6-NO