• Skip to content
  • Skip to link menu
KDE 4.7 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KImgIO

  • XCFImageFormat
  • Layer
Public Member Functions | Public Attributes
XCFImageFormat::Layer Class Reference

List of all members.

Public Member Functions

 Layer (void)
 ~Layer (void)

Public Attributes

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

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.


Constructor & Destructor Documentation

XCFImageFormat::Layer::Layer ( void  ) [inline]

Definition at line 123 of file xcf.h.

XCFImageFormat::Layer::~Layer ( void  ) [inline]

Definition at line 124 of file xcf.h.


Member Data Documentation

bool XCFImageFormat::Layer::active

Is this layer the active layer?

Definition at line 101 of file xcf.h.

Tiles XCFImageFormat::Layer::alpha_tiles

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

Definition at line 89 of file xcf.h.

quint32 XCFImageFormat::Layer::apply_mask

Apply the layer mask?

Definition at line 106 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 121 of file xcf.h.

uchar XCFImageFormat::Layer::blue

Definition at line 97 of file xcf.h.

quint32 XCFImageFormat::Layer::edit_mask

Is the layer mask the being edited?

Definition at line 107 of file xcf.h.

uchar XCFImageFormat::Layer::green

Definition at line 97 of file xcf.h.

quint32 XCFImageFormat::Layer::height

Height of the layer.

Definition at line 77 of file xcf.h.

quint32 XCFImageFormat::Layer::hierarchy_offset

File position of Tile hierarchy.

Definition at line 80 of file xcf.h.

Tiles XCFImageFormat::Layer::image_tiles

The basic image.

Definition at line 86 of file xcf.h.

quint32 XCFImageFormat::Layer::linked

Is this layer linked (geometrically)

Definition at line 104 of file xcf.h.

struct { ... } XCFImageFormat::Layer::mask_channel

Additional information about a layer mask.

quint32 XCFImageFormat::Layer::mask_offset

File position of mask image.

Definition at line 81 of file xcf.h.

Tiles XCFImageFormat::Layer::mask_tiles

The layer mask (optional)

Definition at line 90 of file xcf.h.

quint32 XCFImageFormat::Layer::mode

Combining mode of layer (LayerModeEffects)

Definition at line 111 of file xcf.h.

char* XCFImageFormat::Layer::name

Name of the layer.

Definition at line 79 of file xcf.h.

uint XCFImageFormat::Layer::ncols

Number of columns of tiles (x direction)

Definition at line 84 of file xcf.h.

uint XCFImageFormat::Layer::nrows

Number of rows of tiles (y direction)

Definition at line 83 of file xcf.h.

quint32 XCFImageFormat::Layer::opacity

The opacity of the layer.

Definition at line 94 of file xcf.h.

quint32 XCFImageFormat::Layer::preserve_transparency

Preserve alpha when drawing on layer?

Definition at line 105 of file xcf.h.

uchar XCFImageFormat::Layer::red

Definition at line 97 of file xcf.h.

quint32 XCFImageFormat::Layer::show_mask

Show the layer mask rather than the image?

Definition at line 108 of file xcf.h.

quint32 XCFImageFormat::Layer::show_masked

Definition at line 96 of file xcf.h.

quint32 XCFImageFormat::Layer::tattoo

(unique identifier?)

Definition at line 98 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 115 of file xcf.h.

qint32 XCFImageFormat::Layer::type

Type of the layer (GimpImageType)

Definition at line 78 of file xcf.h.

quint32 XCFImageFormat::Layer::visible

Is the layer visible?

Definition at line 95 of file xcf.h.

quint32 XCFImageFormat::Layer::width

Width of the layer.

Definition at line 76 of file xcf.h.

qint32 XCFImageFormat::Layer::x_offset

x offset of the layer relative to the image

Definition at line 109 of file xcf.h.

qint32 XCFImageFormat::Layer::y_offset

y offset of the layer relative to the image

Definition at line 110 of file xcf.h.


The documentation for this class was generated from the following file:
  • xcf.h

KImgIO

Skip menu "KImgIO"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal