[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.DitheringEffect

Class DitheringEffect

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

In-place effect that converts a monochromatic (grayscale) image to bi-level image with two-dimensional error diffusion dithering.

public class DitheringEffect : BaseInplaceEffect
Inheritance
DitheringEffect
Inherited Members

Methods

Apply(GcBitmap)

Applies the effect to the specified GcBitmap.

protected override void Apply(GcBitmap bitmap)

Parameters

bitmap GcBitmap

The target GcBitmap.

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.

Get(DitheringMethod)

Returns an instance of the DitheringEffect class.

public static DitheringEffect Get(DitheringMethod ditheringMethod)

Parameters

ditheringMethod DitheringMethod

The method of two-dimensional error diffusion dithering.

Returns

DitheringEffect