by ctn » Tue May 19, 2009 3:50 pm
I have performed more tests:
JPEG
[/b]
Blackwhite (PixelType = BW(0)):
-------------------------------
ScanningPrinting.scanningScanPreview():
byte[230308]{0xff, 0xd8, 0xff, 0xe0, 0x00, 0x10, 0x4a, 0x46, 0x49, 0x46, 0x00, 0x01, 0x01, 0x01, 0x00, 0x64, 0x00, 0x64, 0x00, 0x00, ...}
sizePixels=832,1169
sizeInches=8.32,11.69
DPI=(100, 100)
--------------------------------------
Greyscale (PixelType = GRAY (1)):
---------------------------------
ScanningPrinting.scanningScanPreview():
byte[276875]{0xff, 0xd8, 0xff, 0xe0, 0x00, 0x10, 0x4a, 0x46, 0x49, 0x46, 0x00, 0x01, 0x01, 0x01, 0x00, 0x64, 0x00, 0x64, 0x00, 0x00, ...}
sizePixels=828,1169
sizeInches=8.28,11.69
DPI=(100, 100)
--------------------------------------
Color (PixelType = RGB (2)):
----------------------------
ScanningPrinting.scanningScanPreview():
byte[255271]{0xff, 0xd8, 0xff, 0xe0, 0x00, 0x10, 0x4a, 0x46, 0x49, 0x46, 0x00, 0x01, 0x01, 0x01, 0x00, 0x64, 0x00, 0x64, 0x00, 0x00, ...}
sizePixels=828,1169
sizeInches=8.28,11.69
DPI=(100, 100)
--------------------------------------
JPEG / Color (PixelType = RGB (2)):
ScanningPrinting.scanningScanImage(JPEG):
byte[253341]{0xff, 0xd8, 0xff, 0xe0, 0x00, 0x10, 0x4a, 0x46, 0x49, 0x46, 0x00, 0x01, 0x01, 0x01, 0x00, 0x64, 0x00, 0x64, 0x00, 0x00, ...}
sizePixels=828,1169
sizeInches=8.28,11.69
DPI=(100, 100)
--------------------------------------
BMP / Color (PixelType = RGB (2)):
ScanningPrinting.scanningScanImage(BMP):
byte[2903850]{0x42, 0x4d, 0x2a, 0x4f, 0x2c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x36, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x3c, 0x03, ...}
sizePixels=828,1169
sizeInches=8.28001642459313,11.6900231888277
DPI=(99.9998016357422, 99.9998016357422)
--------------------------------------
TIFF / Color (PixelType = RGB (2)):
ScanningPrinting.scanningScanImage(TIFF):
byte[814920]{0x49, 0x49, 0x2a, 0x00, 0x8e, 0x6e, 0x0c, 0x00, 0x80, 0x27, 0x15, 0xaa, 0x54, 0xa2, 0xb5, 0x38, 0x94, 0x46, 0x25, 0x21, ...}
sizePixels=828,1169
sizeInches=8.28,11.69
DPI=(100, 100)
--------------------------------------
As you can see the right edge of the BLACKWHITE (8.32 inches) image is different from Color and Grayscale (8.28 inches).
Could you please investigate?
Thanks, ctn