BitmapExtensionMethods.BitmapProcess

ParallelProcess<2>AbstractProcessReferences
Multi-threaded bitmap processor base class. This class adds region clipping and control layers to the ParallelProcess class.

Constructors

BitmapProcess

#
Set up a process for a specific region of an image.
protected BitmapProcess(
BitmapData
data,
Bitmap 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.
)

BitmapProcess

#
Set up a process for the entire image.
protected BitmapProcess(
BitmapData
data
Bitmap data.
)

Fields

_data

#
Bitmap data.
protected readonly BitmapData _data

_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

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()

Process

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