BitmapExtensionMethods.PaletteDeviationProcess

BitmapExtensionMethods.BitmapProcessParallelProcess<2>AbstractProcess
Parallel process for creating palette deviation images.

Constructors

PaletteDeviationProcess

#
Create a new process.
public PaletteDeviationProcess(
BitmapData
data,
SpatialTree<Color>
palette,
gradient
)

Fields

_data

Bitmap data.
protected readonly BitmapData _data
inherited fromBitmapExtensionMethods.BitmapProcess

_x0

Inclusive leftmost pixel index to be processed.
protected readonly int _x0
inherited fromBitmapExtensionMethods.BitmapProcess

_x1

Exclusive rightmost pixel index to be processed.
protected readonly int _x1
inherited fromBitmapExtensionMethods.BitmapProcess

_y0

Inclusive topmost pixel index to be processed.
protected readonly int _y0
inherited fromBitmapExtensionMethods.BitmapProcess

_y1

Exclusive bottommost pixel index to be processed.
protected readonly int _y1
inherited fromBitmapExtensionMethods.BitmapProcess

Properties

CountOverride

Gets or sets the number of iterations to process. If the override is negative, the size of the longest input array determines the count.
public int CountOverride { get; set; }
inherited fromAbstractProcess

RunSingleThreaded

Gets whether this process is supposed to run in single threaded mode.
public bool RunSingleThreaded { get; }
inherited fromAbstractProcess

ThreadCount

Gets or sets the maximum degrees of parallelism for this process. Leave the value at a negative number to revert to default.
public int ThreadCount { get; set; }
inherited fromAbstractProcess

Methods

CreateOptions

protected ParallelOptions CreateOptions()
inherited fromAbstractProcess

Perform

public TResult[] Perform(
T1[]
data1,
token
)
inherited fromParallelProcess<TResult, T1>

Perform

public TResult[] Perform(
T1[]
data1
)
inherited fromParallelProcess<TResult, T1>

Perform

Perform this process on all columns in the bitmap.
public void Perform()
inherited fromBitmapExtensionMethods.BitmapProcess

Process

#
Process a single iteration. This method should ideally not throw exceptions.
protected override bool Process(
x,
Data to process.
token
Cancellation token.
)
Result.