EgorovAlex
Technical User
- Oct 30, 2008
- 12
Hello,
I have Bitmap in my PCL 6 file:
D1 - uint16_xy
5802 5802
F8 - attr_ubyte
89 - UnitsPerMeasure = (600, 600)
C0 - ubyte
00
F8 - attr_ubyte
86 - Measure = eInch
C0 - ubyte
03
F8 - attr_ubyte
8F - ErrorReport = eBackChAndErrPage
41 - BeginSession
C0 - ubyte
00
F8 - attr_ubyte
88 - SourceType = eDefaultDataSource
C0 - ubyte
01
F8 - attr_ubyte
82 - DataOrg = eBinaryLowByteFirst
48 - OpenDataSource
C0 - ubyte
01
F8 - attr_ubyte
26 - MediaSource = eAutoSelect
C0 - ubyte
00
F8 - attr_ubyte
28 - Orientation = ePortraitOrientation
C8 - ubyte_array
C0 - ubyte
02 - length of array = 2
41 34
F8 - attr_ubyte
25 - MediaSize = A4
43 - BeginPage
D3 - sint16_xy
6400 6400
F8 - attr_ubyte
2A - PageOrigin = (100, 100)
75 - SetPageOrigin
C0 - ubyte
00
F8 - attr_ubyte
1E - TextObjects = 0
C0 - ubyte
01
F8 - attr_ubyte
20 - RasterObjects = 1
C0 - ubyte
00
F8 - attr_ubyte
1F - VectorObjects = 0
7E - SetNeutralAxis
C0 - ubyte
00
F8 - attr_ubyte
1E - TextObjects = 0
C0 - ubyte
00
F8 - attr_ubyte
20 - RasterObjects = 0
C0 - ubyte
00
F8 - attr_ubyte
1F - VectorObjects = 0
6D - SetHalftoneMethod
C0 - ubyte
01
F8 - attr_ubyte
1E - TextObjects = 1
C0 - ubyte
01
F8 - attr_ubyte
20 - RasterObjects = 1
C0 - ubyte
01
F8 - attr_ubyte
1F - VectorObjects = 1
58 - SetColorTreatment
C0 - ubyte
01
F8 - attr_ubyte
1E - TextObjects = 1
C0 - ubyte
01
F8 - attr_ubyte
20 - RasterObjects = 1
C0 - ubyte
01
F8 - attr_ubyte
1F - VectorObjects = 1
94 - SetAdaptiveHalftoning
C0 - ubyte
02
F8 - attr_ubyte
1D - AllObjectTypes = 2
92 - SetColorTrapping
D5 - real32_xy
0000803F 0000803F
F8 - attr_ubyte
2B - PageScale = (1, 1)
77 - SetPageScale
C0 - ubyte
02
F8 - attr_ubyte
03 - ColorSpace = eRGB
6A - SetColorSpace
C0 - ubyte
00
F8 - attr_ubyte
2D - TxMode = eOpaque
78 - SetPatternTxMode
C0 - ubyte
00
F8 - attr_ubyte
2D - TxMode = eOpaque
7C - SetSourceTxMode
D3 - sint16_xy
4309 430D
F8 - attr_ubyte
4C - Point = (2371, 3395)
6B - SetCursor
C0 - ubyte
02
F8 - attr_ubyte
03 - ColorSpace = eRGB
6A - SetColorSpace
C0 - ubyte
00
F8 - attr_ubyte
64 - ColorMapping = eDirectPixel
C0 - ubyte
02
F8 - attr_ubyte
62 - ColorDepth = e8Bit
C1 - uint16
0300
F8 - attr_ubyte
6C - SourceWidth = 3
C1 - uint16
0400
F8 - attr_ubyte
6B - SourceHeight = 4
D1 - uint16_xy
1200 1800
F8 - attr_ubyte
67 - DestinationSize = (18,24)
C1 - uint16
0000
F8 - attr_ubyte
6D - StartLine = 0
C1 - uint16
0400
F8 - attr_ubyte
63 - BlockHeight = 4
C0 - ubyte
01
F8 - attr_ubyte
65 - CompressMode = eRLECompression
FB - dataLengthByte
14 - length of Embedded Data = 20
F8 FF FE 00 FD FF FF 00 FE FF FE 00 F8 FF FE 00 F8 FF FE 00
C1 - uint16
0100
F8 - attr_ubyte
31 - PageCopies = 1
44 - EndPage
49 - CloseDataSource
42 - EndSession
This file contain rectangle 3x4:
WWW : W - white
WRW : R - red
WWW
WWW
This is hex code of bitmap:
F8 FF FE 00
FD FF FF 00 FE FF FE 00
F8 FF FE 00
F8 FF FE 00
How I can decode it? In documentation I found for RLE commpression F8 it is singned Byte, F8 = -8 => we have 9 repeated points? How I can decode color, this comression similar PCX format?
Also why this file does not contain BeginImage operator? How I can know, that this hex data is bitmap.
If I found GPEG compression, how I can decode it?
I have Bitmap in my PCL 6 file:
D1 - uint16_xy
5802 5802
F8 - attr_ubyte
89 - UnitsPerMeasure = (600, 600)
C0 - ubyte
00
F8 - attr_ubyte
86 - Measure = eInch
C0 - ubyte
03
F8 - attr_ubyte
8F - ErrorReport = eBackChAndErrPage
41 - BeginSession
C0 - ubyte
00
F8 - attr_ubyte
88 - SourceType = eDefaultDataSource
C0 - ubyte
01
F8 - attr_ubyte
82 - DataOrg = eBinaryLowByteFirst
48 - OpenDataSource
C0 - ubyte
01
F8 - attr_ubyte
26 - MediaSource = eAutoSelect
C0 - ubyte
00
F8 - attr_ubyte
28 - Orientation = ePortraitOrientation
C8 - ubyte_array
C0 - ubyte
02 - length of array = 2
41 34
F8 - attr_ubyte
25 - MediaSize = A4
43 - BeginPage
D3 - sint16_xy
6400 6400
F8 - attr_ubyte
2A - PageOrigin = (100, 100)
75 - SetPageOrigin
C0 - ubyte
00
F8 - attr_ubyte
1E - TextObjects = 0
C0 - ubyte
01
F8 - attr_ubyte
20 - RasterObjects = 1
C0 - ubyte
00
F8 - attr_ubyte
1F - VectorObjects = 0
7E - SetNeutralAxis
C0 - ubyte
00
F8 - attr_ubyte
1E - TextObjects = 0
C0 - ubyte
00
F8 - attr_ubyte
20 - RasterObjects = 0
C0 - ubyte
00
F8 - attr_ubyte
1F - VectorObjects = 0
6D - SetHalftoneMethod
C0 - ubyte
01
F8 - attr_ubyte
1E - TextObjects = 1
C0 - ubyte
01
F8 - attr_ubyte
20 - RasterObjects = 1
C0 - ubyte
01
F8 - attr_ubyte
1F - VectorObjects = 1
58 - SetColorTreatment
C0 - ubyte
01
F8 - attr_ubyte
1E - TextObjects = 1
C0 - ubyte
01
F8 - attr_ubyte
20 - RasterObjects = 1
C0 - ubyte
01
F8 - attr_ubyte
1F - VectorObjects = 1
94 - SetAdaptiveHalftoning
C0 - ubyte
02
F8 - attr_ubyte
1D - AllObjectTypes = 2
92 - SetColorTrapping
D5 - real32_xy
0000803F 0000803F
F8 - attr_ubyte
2B - PageScale = (1, 1)
77 - SetPageScale
C0 - ubyte
02
F8 - attr_ubyte
03 - ColorSpace = eRGB
6A - SetColorSpace
C0 - ubyte
00
F8 - attr_ubyte
2D - TxMode = eOpaque
78 - SetPatternTxMode
C0 - ubyte
00
F8 - attr_ubyte
2D - TxMode = eOpaque
7C - SetSourceTxMode
D3 - sint16_xy
4309 430D
F8 - attr_ubyte
4C - Point = (2371, 3395)
6B - SetCursor
C0 - ubyte
02
F8 - attr_ubyte
03 - ColorSpace = eRGB
6A - SetColorSpace
C0 - ubyte
00
F8 - attr_ubyte
64 - ColorMapping = eDirectPixel
C0 - ubyte
02
F8 - attr_ubyte
62 - ColorDepth = e8Bit
C1 - uint16
0300
F8 - attr_ubyte
6C - SourceWidth = 3
C1 - uint16
0400
F8 - attr_ubyte
6B - SourceHeight = 4
D1 - uint16_xy
1200 1800
F8 - attr_ubyte
67 - DestinationSize = (18,24)
C1 - uint16
0000
F8 - attr_ubyte
6D - StartLine = 0
C1 - uint16
0400
F8 - attr_ubyte
63 - BlockHeight = 4
C0 - ubyte
01
F8 - attr_ubyte
65 - CompressMode = eRLECompression
FB - dataLengthByte
14 - length of Embedded Data = 20
F8 FF FE 00 FD FF FF 00 FE FF FE 00 F8 FF FE 00 F8 FF FE 00
C1 - uint16
0100
F8 - attr_ubyte
31 - PageCopies = 1
44 - EndPage
49 - CloseDataSource
42 - EndSession
This file contain rectangle 3x4:
WWW : W - white
WRW : R - red
WWW
WWW
This is hex code of bitmap:
F8 FF FE 00
FD FF FF 00 FE FF FE 00
F8 FF FE 00
F8 FF FE 00
How I can decode it? In documentation I found for RLE commpression F8 it is singned Byte, F8 = -8 => we have 9 repeated points? How I can decode color, this comression similar PCX format?
Also why this file does not contain BeginImage operator? How I can know, that this hex data is bitmap.
If I found GPEG compression, how I can decode it?