CacheView
*image_view;
- ImageType
- type;
+ MagickBooleanType
+ bilevel;
register ssize_t
x;
return(MagickTrue);
if (IssRGBCompatibleColorspace(image->colorspace) == MagickFalse)
return(MagickFalse);
- type=BilevelType;
+ bilevel=MagickTrue;
image_view=AcquireVirtualCacheView(image,exception);
for (y=0; y < (ssize_t) image->rows; y++)
{
{
if (IsPixelMonochrome(image,p) == MagickFalse)
{
- type=UndefinedType;
+ bilevel=MagickFalse;
break;
}
p+=GetPixelChannels(image);
}
- if (type == UndefinedType)
+ if (bilevel == MagickFalse)
break;
}
image_view=DestroyCacheView(image_view);
- if (type == BilevelType)
- return(MagickTrue);
- return(MagickFalse);
+ return(bilevel);
}
\f
/*