XCFImageFormat::Layer Class Reference

List of all members.

Public Attributes

Q_UINT32 width
Q_UINT32 height
Q_INT32 type
char * name
Q_UINT32 hierarchy_offset
Q_UINT32 mask_offset
uint nrows
uint ncols
Tiles image_tiles
Tiles alpha_tiles
Tiles mask_tiles
struct {
   Q_UINT32   opacity
   Q_UINT32   visible
   Q_UINT32   show_masked
   uchar   red
   uchar   green
   uchar   blue
   Q_UINT32   tattoo
mask_channel
bool active
Q_UINT32 linked
Q_UINT32 preserve_transparency
Q_UINT32 apply_mask
Q_UINT32 edit_mask
Q_UINT32 show_mask
Q_INT32 x_offset
Q_INT32 y_offset
Q_UINT32 mode
uchar tile [TILE_WIDTH *TILE_HEIGHT *sizeof(QRgb)]
void(* assignBytes )(Layer &layer, uint i, uint j)

Detailed Description

Each GIMP image is composed of one or more layers. A layer can be one of any three basic types: RGB, grayscale or indexed. With an optional alpha channel, there are six possible types altogether.

Note: there is only ever one instance of this structure. The layer info is discarded after it is merged into the final QImage.


Member Data Documentation

Is this layer the active layer?

Definition at line 92 of file xcf.h.

For Grayscale and Indexed images, the alpha channel is stored separately (in this data structure, anyway).

Definition at line 80 of file xcf.h.

Apply the layer mask?

Definition at line 97 of file xcf.h.

void(* XCFImageFormat::Layer::assignBytes)(Layer &layer, uint i, uint j)

The data from tile buffer is copied to the Tile by this method.

Depending on the type of the tile (RGB, Grayscale, Indexed) and use (image or mask), the bytes in the buffer are copied in different ways.

Definition at line 112 of file xcf.h.

Is the layer mask the being edited?

Definition at line 98 of file xcf.h.

Height of the layer.

Definition at line 68 of file xcf.h.

File position of Tile hierarchy.

Definition at line 71 of file xcf.h.

The basic image.

Definition at line 77 of file xcf.h.

Is this layer linked (geometrically)

Definition at line 95 of file xcf.h.

Additional information about a layer mask.

File position of mask image.

Definition at line 72 of file xcf.h.

The layer mask (optional)

Definition at line 81 of file xcf.h.

Combining mode of layer (LayerModeEffects)

Definition at line 102 of file xcf.h.

Name of the layer.

Definition at line 70 of file xcf.h.

Number of columns of tiles (x direction)

Definition at line 75 of file xcf.h.

Number of rows of tiles (y direction)

Definition at line 74 of file xcf.h.

The opacity of the layer.

Definition at line 85 of file xcf.h.

Preserve alpha when drawing on layer?

Definition at line 96 of file xcf.h.

Show the layer mask rather than the image?

Definition at line 99 of file xcf.h.

(unique identifier?)

Definition at line 89 of file xcf.h.

uchar XCFImageFormat::Layer::tile[TILE_WIDTH *TILE_HEIGHT *sizeof(QRgb)]

As each tile is read from the file, it is buffered here.

Definition at line 106 of file xcf.h.

Type of the layer (GimpImageType)

Definition at line 69 of file xcf.h.

Is the layer visible?

Definition at line 86 of file xcf.h.

Width of the layer.

Definition at line 67 of file xcf.h.

x offset of the layer relative to the image

Definition at line 100 of file xcf.h.

y offset of the layer relative to the image

Definition at line 101 of file xcf.h.


The documentation for this class was generated from the following file:
KDE Home | KDE Accessibility Home | Description of Access Keys