Redo some reverted style changes.
This commit is contained in:
parent
78341a9351
commit
b79561ad9c
|
@ -31,21 +31,21 @@ ToGray(ColorRGB32 c)
|
|||
static uint
|
||||
GetRedValue(ColorRGB32 c)
|
||||
{
|
||||
return c.little.red;
|
||||
return c.little.red;
|
||||
}
|
||||
|
||||
|
||||
static uint
|
||||
GetGreenValue(ColorRGB32 c)
|
||||
{
|
||||
return c.little.green;
|
||||
return c.little.green;
|
||||
}
|
||||
|
||||
|
||||
static uint
|
||||
GetBlueValue(ColorRGB32 c)
|
||||
{
|
||||
return c.little.blue;
|
||||
return c.little.blue;
|
||||
}
|
||||
|
||||
|
||||
|
@ -56,11 +56,11 @@ Halftone::Halftone(color_space colorSpace, double gamma, double min,
|
|||
fGray = ToGray;
|
||||
SetPlanes(kPlaneMonochrome1);
|
||||
SetBlackValue(kHighValueMeansBlack);
|
||||
|
||||
|
||||
InitFloydSteinberg();
|
||||
|
||||
|
||||
CreateGammaTable(gamma, min);
|
||||
|
||||
|
||||
if (ditherType == kTypeFloydSteinberg) {
|
||||
fDither = &Halftone::DitherFloydSteinberg;
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue