File: xcf.doc

package info (click to toggle)
gimp 1.0.2-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 17,116 kB
  • ctags: 16,070
  • sloc: ansic: 226,067; lisp: 8,497; sh: 4,965; makefile: 4,543
file content (156 lines) | stat: -rw-r--r-- 2,302 bytes parent folder | download | duplicates (8)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
Description
-----------

Hierarchy of images.
Each layer of the hierarchy is composed of 64x64 pixel tiles.


Properties
----------

  Properties consist of a 4 byte identifier, a 4 byte size field
  interpreted as an unsigned integer and the property data which is
  "size" bytes in length. Unknown properties *must* be skipped.


  Property types
  --------------

    PROP_COLORMAP [1]
      uint32 ncolors
      uchar cmap[ncolors]

    PROP_ACTIVE_LAYER [2]
      <nothing>

    PROP_ACTIVE_CHANNEL [3]
      <nothing>

    PROP_SELECTION [4]
      <nothing>

    PROP_FLOATING_SELECTION [5]
      uint32 drawable_offset

    PROP_OPACITY [6]
      int32 opacity

    PROP_MODE [7]
      int32 mode

    PROP_VISIBLE [8]
      boolean visible

    PROP_LINKED [9]
      boolean linked

    PROP_PRESERVE_TRANSPARENCY [10]
      boolean preserve_transparency

    PROP_APPLY_MASK [11]
      boolean apply_mask

    PROP_SHOW_MASKED [12]
      boolean show_masked

    PROP_OFFSETS [13]
      int32 x_offset
      int32 y_offset

    PROP_COLOR [14]
      uchar color[3]


Sections
--------

  Image
  -----

    "gimp xcf file"

    uint32 width
    uint32 height
    int32 image_type
    property properties

    uint32 layer_file_offsets[]
    uint32 channel_file_offsets[]

    Properties
    ----------

      PROP_COLORMAP


  Layer
  -----

    uint32 width
    uint32 height
    int32 layer_type
    string name
    property properties

    uint32 hierarchy_file_offset
    uint32 layer_mask_offset

    Properties
    ----------

      PROP_ACTIVE_LAYER
      PROP_FLOATING_SELECTION
      PROP_OPACITY
      PROP_VISIBLE
      PROP_LINKED
      PROP_PRESERVE_TRANSPARENCY
      PROP_APPLY_MASK
      PROP_EDIT_MASK
      PROP_SHOW_MASK
      PROP_OFFSETS
      PROP_MODE


  Channel
  -------

    uint32 width
    uint32 height
    string name
    property properties

    uint32 hierarchy_file_offset

    Properties
    ----------

      PROP_ACTIVE_CHANNEL
      PROP_SELECTION
      PROP_OPACITY
      PROP_VISIBLE
      PROP_SHOW_MASKED
      PROP_COLOR


  Hierarchy
  ---------

    uint32 width
    uint32 height
    uint32 bpp

    uint32 level_file_offsets[]


  Level
  -----

    uint32 width
    uint32 height
    uint32 tile_file_offsets[]


  Tile
  ----

    uchar data[]