je voudrai importer un fichier .gbr de Gimp dans un prog de dessin PB. j'ai le format du fichier ex:
;The GIMP Paintbrush File Format Version 2 (.gbr)
;HEADER
;------
;Bytes 0 - 3: header_size:
; Type: 32 bit unsigned int
; Value: size of brush header (28) + length of brush name
;Bytes 4 - 7: version
; Type: 32 bit unsigned int
; Value: The file format version.
;Bytes 8 - 11: width
; Type: 32 bit unsigned int
; Value: Brush width
;Bytes 12 - 15: height
; Type: 32 bit unsigned int
; Value: Brush height
;Bytes 16 - 19: bytes
; Type: 32 bit unsigned int
; Value: Colour depth of brush.
; 1 = greyscale, 4 = RGBA
;Bytes 20 - 23: magic_number
; Type: 32 bit unsigned int
; Value: GIMP brush magic number.
; ('G' << 24) + ('I' << 16) + ('M' <<

;Bytes 24 - 27: spacing
; Type: 32 bit unsigned int
; Value: Default spacing To be used For brush. Percentage
; of brush width.
;Bytes 28 - (header_size - 1):
; Type: char *
; Value: UTF-8 string - name of brush et je bloc sur la lecture
et je bloc sur " Int Signed" j'utilise READByte().