BitmapExtensionMethods.BufferProcess

ParallelProcess<2>AbstractProcess
public abstract class BitmapExtensionMethods.BufferProcess : ParallelProcess<Color[], int>
Multi-threaded bitmap processor base class with a buffered colour array.

Constructors

BufferProcess

#
Set up a process for a specific region of an image.
protected BufferProcess(
Color[][]
buffer,
Buffer data.
x0,
Inclusive leftmost pixel index to be processed.
x1,
Exclusive rightmost pixel index to be processed.
y0,
Inclusive topmost pixel index to be processed.
y1
Exclusive bottommost pixel index to be processed.
)

BufferProcess

#
Set up a process for the entire image.
protected BufferProcess(
Color[][]
buffer
Buffer data.
)

Fields

_buffer

#
Colour buffer.
protected readonly Color[][] _buffer

_x0

#
Inclusive leftmost pixel index to be processed.
protected readonly int _x0

_x1

#
Exclusive rightmost pixel index to be processed.
protected readonly int _x1

_y0

#
Inclusive topmost pixel index to be processed.
protected readonly int _y0

_y1

#
Exclusive bottommost pixel index to be processed.
protected readonly int _y1

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

#
Perform this process on all columns in the buffer.
public Color[][] Perform()

Perform

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

Perform

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

Process

protected abstract TResult Process(
T1
data,
token
)
inherited fromParallelProcess<TResult, T1>