#include "FirstIncludes.h"
#include <algorithm>
#include <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <string.h>
#include <string>
#include <vector>
#include <stdio.h>
#include "MemoryDebug.h"
#include <windows.h>
#include "BMPImage.h"
#include "KKException.h"
#include "OSservices.h"
#include "Raster.h"
Go to the source code of this file.
| bool GrayScaleImage |
( |
RGBQUAD * |
palette, |
|
|
kkint32 |
palletSize |
|
) |
| |
Returns true if palette is for a grayscale image.
Definition at line 988 of file BMPImage.cpp.
992 bool isGrayScaleImage =
true;
994 for (
kkint32 x = 0; ((x < palletSize) && isGrayScaleImage); x++)
996 kkint32 expectedColor = 255 - x;
997 if ((palette[x].rgbBlue != expectedColor) ||
998 (palette[x].rgbGreen != expectedColor) ||
999 (palette[x].rgbRed != expectedColor)
1002 isGrayScaleImage =
false;
1006 return isGrayScaleImage;