Property | Type | Description | |
---|---|---|---|
height | int | ||
pixelSize | int | ||
stride | int | ||
width | int | ||
x | int | ||
y | int |
Method | Description | |
---|---|---|
Apply ( |
Perform color dithering for the specified image.
|
|
Apply ( |
Perform color dithering for the specified image.
|
Method | Description | |
---|---|---|
Diffuse ( int rError, int gError, int bError, byte ptr ) : void |
Do error diffusion. All parameters of the image and current processing pixel's coordinates are initialized in protected members. |
|
ErrorDiffusionColorDithering ( ) : System |
Initializes a new instance of the ErrorDiffusionColorDithering class.
|
Method | Description | |
---|---|---|
GetClosestColor ( int red, int green, int blue, byte &colorIndex ) : Color |
public Apply ( |
||
sourceImage | Source image to do color dithering for. | |
return |
public Apply ( |
||
sourceImage | Source image to do color dithering for. | |
return |
protected abstract Diffuse ( int rError, int gError, int bError, byte ptr ) : void | ||
rError | int | Error value of red component. |
gError | int | Error value of green component. |
bError | int | Error value of blue component. |
ptr | byte | Pointer to current processing pixel. |
return | void |
protected ErrorDiffusionColorDithering ( ) : System | ||
return | System |