GimpPattern-header

GimpPattern-header

Synopsis

#define             GPATTERN_FILE_VERSION
#define             GPATTERN_MAGIC
struct              PatternHeader;

Description

Details

GPATTERN_FILE_VERSION

#define GPATTERN_FILE_VERSION    1


GPATTERN_MAGIC

#define GPATTERN_MAGIC    (('G' << 24) + ('P' << 16) + ('A' << 8) + ('T' << 0))


struct PatternHeader

struct PatternHeader {
  guint32   header_size;  /*  header_size = sizeof(PatternHeader) + pattern name  */
  guint32   version;      /*  pattern file version #  */
  guint32   width;        /*  width of pattern  */
  guint32   height;       /*  height of pattern  */
  guint32   bytes;        /*  depth of pattern in bytes  */
  guint32   magic_number; /*  GIMP pattern magic number  */
};