2 The GIMP Pattern File Format Version 1 (.pat)
3 ------------------------------------------------
8 Bytes 0 - 3: header_size:
9 Type: 32 bit unsigned int
10 Value: size of pattern header (24) + length of pattern name
13 Type: 32 bit unsigned int
14 Value: The file format version.
17 Type: 32 bit unsigned int
21 Type: 32 bit unsigned int
25 Type: 32 bit unsigned int
26 Value: Colour depth of pattern
27 1 = greyscale, 2 = greyscale + A, 3 = RGB, 4 = RGBA
29 Bytes 20 - 23: magic_number
30 Type: 32 bit unsigned int
31 Value: GIMP pattern magic number.
32 ('G' << 24) + ('P' << 16) + ('A' << 8) + 'T'
34 Bytes 24 - (header_size - 1):
36 Value: UTF-8 string - name of pattern
41 Size: width * height * bytes
43 Value: Pixel values (row-first) for pattern