C# Класс WinRTXamlToolkit.Imaging.WriteableBitmapFloodFillExtensions

WriteableBitmap extensions for filling regions of the bitmap with flood fill and similar algorithms.
Показать файл Открыть проект

Открытые методы

Метод Описание
FloodFill ( this target, int x, int y, int outlineColor, int fillColor ) : void

Fills a region of the bitmap within an outline of outlineColor with a fillColor.

This is the most simple flood fill algorithm implementation. Not the most efficient.

FloodFillReplace ( this target, int x, int y, int oldColor, int fillColor ) : void

Fills a region of the bitmap replacing the oldColor with a fillColor.

This is the most simple flood fill algorithm implementation. Not the most efficient.

FloodFillScanline ( this target, int x, int y, int outlineColor, int fillColor ) : void

Fills a region of the bitmap within an outline of outlineColor with a fillColor.

This is the most simple flood fill algorithm implementation. Not the most efficient.

FloodFillScanlineReplace ( this target, int x, int y, int oldColor, int fillColor ) : void

Fills a region of the bitmap replacing the oldColor with a fillColor.

Improves upon the basic algorithm being about 7x faster.

FloodFillScanlineReplace ( this target, int x, int y, int oldColor, int fillColor, byte maxDiff ) : void

Fills a region of the bitmap replacing the oldColor with a fillColor.

Improves upon the basic algorithm being about 7x faster.

Описание методов

FloodFill() публичный статический Метод

Fills a region of the bitmap within an outline of outlineColor with a fillColor.
This is the most simple flood fill algorithm implementation. Not the most efficient.
public static FloodFill ( this target, int x, int y, int outlineColor, int fillColor ) : void
target this Bitmap to fill.
x int X coordinate of the fill seed point.
y int Y coordinate of the fill seed point.
outlineColor int Color of the outline.
fillColor int New color.
Результат void

FloodFillReplace() публичный статический Метод

Fills a region of the bitmap replacing the oldColor with a fillColor.
This is the most simple flood fill algorithm implementation. Not the most efficient.
public static FloodFillReplace ( this target, int x, int y, int oldColor, int fillColor ) : void
target this Bitmap to fill.
x int X coordinate of the fill seed point.
y int Y coordinate of the fill seed point.
oldColor int Old color to replace.
fillColor int New color.
Результат void

FloodFillScanline() публичный статический Метод

Fills a region of the bitmap within an outline of outlineColor with a fillColor.
This is the most simple flood fill algorithm implementation. Not the most efficient.
public static FloodFillScanline ( this target, int x, int y, int outlineColor, int fillColor ) : void
target this Bitmap to fill.
x int X coordinate of the fill seed point.
y int Y coordinate of the fill seed point.
outlineColor int Color of the outline.
fillColor int New color.
Результат void

FloodFillScanlineReplace() публичный статический Метод

Fills a region of the bitmap replacing the oldColor with a fillColor.
Improves upon the basic algorithm being about 7x faster.
public static FloodFillScanlineReplace ( this target, int x, int y, int oldColor, int fillColor ) : void
target this Bitmap to fill.
x int X coordinate of the fill seed point.
y int Y coordinate of the fill seed point.
oldColor int Old color to replace.
fillColor int New color.
Результат void

FloodFillScanlineReplace() публичный статический Метод

Fills a region of the bitmap replacing the oldColor with a fillColor.
Improves upon the basic algorithm being about 7x faster.
public static FloodFillScanlineReplace ( this target, int x, int y, int oldColor, int fillColor, byte maxDiff ) : void
target this Bitmap to fill.
x int X coordinate of the fill seed point.
y int Y coordinate of the fill seed point.
oldColor int Old color to replace.
fillColor int New color.
maxDiff byte Max differenve between old color and other colors that will be filled too.
Результат void