[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.BradleyThresholdingEffect

Class BradleyThresholdingEffect

Namespace
GrapeCity.Documents.Imaging
Assembly
GcDocs.Imaging.dll

In-place effect that converts a monochromatic (grayscale) image to bi-level image using Bradley and Roth's method of adaptive image thresholding.

public class BradleyThresholdingEffect : BaseInplaceEffect
Inheritance
object
BradleyThresholdingEffect
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Methods

Apply(GcBitmap, int, int, int, int)

Applies the effect to a part of the specified GcBitmap.

protected override void Apply(GcBitmap bitmap, int x, int y, int width, int height)

Parameters

bitmap GcBitmap

The target GcBitmap.

x int

The x-coordinate of the target rectangle, in pixels.

y int

The y-coordinate of the target rectangle, in pixels.

width int

The width of the target rectangle, in pixels.

height int

The height of the target rectangle, in pixels.

Apply(GcBitmap)

Applies the effect to the specified GcBitmap.

protected override void Apply(GcBitmap bitmap)

Parameters

bitmap GcBitmap

The target GcBitmap.

Get(int, int)

Returns an instance of the BradleyThresholdingEffect class.

public static BradleyThresholdingEffect Get(int sDivider = 8, int t = 15)

Parameters

sDivider int

A divider of the image width to calculate the value of s.

t int

The value of t parameter.

Returns

BradleyThresholdingEffect