GimpBrush-header

GimpBrush-header

Synopsis

#define             GBRUSH_FILE_VERSION
#define             GBRUSH_MAGIC
struct              BrushHeader;

Description

Details

GBRUSH_FILE_VERSION

#define GBRUSH_FILE_VERSION    2


GBRUSH_MAGIC

#define GBRUSH_MAGIC    (('G' << 24) + ('I' << 16) + ('M' << 8) + ('P' << 0))


struct BrushHeader

struct BrushHeader {
  guint32   header_size;  /*  header_size = sizeof (BrushHeader) + brush name  */
  guint32   version;      /*  brush file version #  */
  guint32   width;        /*  width of brush  */
  guint32   height;       /*  height of brush  */
  guint32   bytes;        /*  depth of brush in bytes--always 1 */
  guint32   magic_number; /*  GIMP brush magic number  */
  guint32   spacing;      /*  brush spacing  */
};