Redo some reverted style changes.
This commit is contained in:
@@ -31,21 +31,21 @@ ToGray(ColorRGB32 c)
|
|||||||
static uint
|
static uint
|
||||||
GetRedValue(ColorRGB32 c)
|
GetRedValue(ColorRGB32 c)
|
||||||
{
|
{
|
||||||
return c.little.red;
|
return c.little.red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static uint
|
static uint
|
||||||
GetGreenValue(ColorRGB32 c)
|
GetGreenValue(ColorRGB32 c)
|
||||||
{
|
{
|
||||||
return c.little.green;
|
return c.little.green;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static uint
|
static uint
|
||||||
GetBlueValue(ColorRGB32 c)
|
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;
|
fGray = ToGray;
|
||||||
SetPlanes(kPlaneMonochrome1);
|
SetPlanes(kPlaneMonochrome1);
|
||||||
SetBlackValue(kHighValueMeansBlack);
|
SetBlackValue(kHighValueMeansBlack);
|
||||||
|
|
||||||
InitFloydSteinberg();
|
InitFloydSteinberg();
|
||||||
|
|
||||||
CreateGammaTable(gamma, min);
|
CreateGammaTable(gamma, min);
|
||||||
|
|
||||||
if (ditherType == kTypeFloydSteinberg) {
|
if (ditherType == kTypeFloydSteinberg) {
|
||||||
fDither = &Halftone::DitherFloydSteinberg;
|
fDither = &Halftone::DitherFloydSteinberg;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user