File: pat.txt

package info (click to toggle)
gimp 2.6.10-1%2Bsqueeze4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 128,948 kB
  • ctags: 55,327
  • sloc: ansic: 635,142; lisp: 10,678; sh: 10,420; makefile: 9,729; python: 3,366; perl: 2,713; xml: 1,152; yacc: 554; lex: 339
file content (44 lines) | stat: -rw-r--r-- 917 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

The GIMP Pattern File Format Version 1 (.pat)
------------------------------------------------

HEADER
------

Bytes 0  - 3:  header_size: 
	Type: 32 bit unsigned int
	Value: size of pattern header (24) + length of pattern name

Bytes 4  - 7: version
	Type: 32 bit unsigned int 
	Value: The file format version.

Bytes 8  - 11: width
	Type: 32 bit unsigned int 
	Value: Pattern width

Bytes 12 - 15: height
	Type: 32 bit unsigned int 
	Value: Pattern height

Bytes 16 - 19: bytes
	Type: 32 bit unsigned int 
	Value: Colour depth of brush. 
	1 = greyscale, 2 = greyscale + A, 3 = RGB, 4 = RGBA

Bytes 20 - 23: magic_number
	Type: 32 bit unsigned int 
	Value: GIMP brush magic number. 
	('G' << 24) + ('I' << 16) + ('M' << 8) + 'P'

Bytes 24 - (header_size - 24):
	Type: char *
	Value: UTF-8 string - name of brush


BODY
----
	Size: width * height * bytes
	Type: uchar *
	Value: Pixel values (row-first) for pattern