StaticcolorConvert a 0xRRGGBB color to a 4-bit grayscale level.
0 is white and 15 is black.
StaticencodeStaticencodeprintDirection = "left" rotates image for 90 degrees clockwise
StaticindexPixels encoded by encodeCanvas (byte is 8 pixels)
Array of indexes where every index stored in two bytes (big endian)
Currently ImageEncode color modes:
PageColorType.Grayscale:PageColorType.DoubleColor:PageColorType.Grayscale:0= white,15= black).