# E:/DevIL/src-ILU/src/ilu_region.c File Reference

`#include "ilu_internal.h"`
`#include "ilu_region.h"`

## Defines

#define | iRegionSetPixel(x, y) (iRegionMask[y * iluCurImage->Width + x] = 1 )

## Functions

void ILAPIENTRY | iluRegionfv (ILpointf *Points, ILuint n)
void ILAPIENTRY | iluRegioniv (ILpointi *Points, ILuint n)
void | InsertEdge (Edge *list, Edge *edge)
ILint | yNext (ILint k, ILint cnt, ILpointi *pts)
void | MakeEdgeRec (ILpointi lower, ILpointi upper, ILint yComp, Edge *edge, Edge *edges[])
void | BuildEdgeList (ILuint cnt, ILpointi *pts, Edge **edges)
void | BuildActiveList (ILint scan, Edge *active, Edge *edges[])
void | FillScan (ILint scan, Edge *active)
void | DeleteAfter (Edge *q)
void | UpdateActiveList (ILint scan, Edge *active)
void | ResortActiveList (Edge *active)
ILubyte * | iScanFill ()

## Variables

ILpointi * | RegionPointsi = NULL
ILpointf * | RegionPointsf = NULL
ILuint | PointNum = 0
ILubyte * | iRegionMask = NULL

## Define Documentation

#define iRegionSetPixel | ( | x,
|  | y |  | ) | (iRegionMask[y * iluCurImage->Width + x] = 1 )

Referenced by FillScan().

## Function Documentation

void BuildActiveList | ( | ILint | scan,
|  | Edge * | active,
|  | Edge * | edges[] |
| ) |  |  |

Referenced by iScanFill().

void BuildEdgeList | ( | ILuint | cnt,
|  | ILpointi * | pts,
|  | Edge ** | edges |
| ) |  |  |

Referenced by iScanFill().

void DeleteAfter | ( | Edge * | q | ) |

Referenced by UpdateActiveList().

void FillScan | ( | ILint | scan,
|  | Edge * | active |
| ) |  |  |

Referenced by iScanFill().

void ILAPIENTRY iluRegionfv | ( | ILpointf * | Points,
|  | ILuint | n |
| ) |  |  |

void ILAPIENTRY iluRegioniv | ( | ILpointi * | Points,
|  | ILuint | n |
| ) |  |  |

void InsertEdge | ( | Edge * | list,
|  | Edge * | edge |
| ) |  |  |

Referenced by BuildActiveList(), MakeEdgeRec(), and ResortActiveList().

ILubyte* iScanFill | ( | void |  | ) |

Referenced by Filter(), iluNegative(), iluNoisify(), and iluPixelize().

void MakeEdgeRec | ( | ILpointi | lower,
|  | ILpointi | upper,
|  | ILint | yComp,
|  | Edge * | edge,
|  | Edge * | edges[] |
| ) |  |  |

Referenced by BuildEdgeList().

void ResortActiveList | ( | Edge * | active | ) |

Referenced by iScanFill().

void UpdateActiveList | ( | ILint | scan,
|  | Edge * | active |
| ) |  |  |

Referenced by iScanFill().

ILint yNext | ( | ILint | k,
|  | ILint | cnt,
|  | ILpointi * | pts |
| ) |  |  |

Referenced by BuildEdgeList().

## Variable Documentation

ILubyte* iRegionMask = NULL

Referenced by iScanFill().

ILuint PointNum = 0

Referenced by iluRegionfv(), iluRegioniv(), and iScanFill().

ILpointf* RegionPointsf = NULL

ILpointi* RegionPointsi = NULL