5.12. Esporta immagine come Sorgente-C

5.12.1. Panoramica

Figura 15.67. La finestra Esporta Sorgente-C

La finestra Esporta Sorgente-C

La finestra di dialogo di esportazione sorgente C consente di esportare l'immagine come file sorgente C che può essere incluso in un programma scritto in C.

5.12.2. Opzioni

Nome prefissato

Il nome della variabile che conterrà i dati dell'immagine.

Commenti

Un commento che verrà aggiunto ai dati dell'immagine.

Salva commento su file

Il Commento verrà esportato nel file C solo se questa impostazione è selezionata.

Usa tipi GLib (guint8*)

When checked GLib datatypes like «guint8» will be used. When unchecked, plain C datatypes will be used instead.

Use macros instead of a struct

When checked, macros will be used to define the image data. When unchecked, a struct will be used instead.

Use 1-bit Run-Length-Encoding

When checked, the image data will be encoded using Run-Length-Encoding compression. A function macro called

GIMP_IMAGE_RUN_LENGTH_DECODE

will be added to the source file that can be used to decode the image data.

Save alpha channel (RGBA/RGB)

When checked, the image data will include the alpha channel.

Save as RGB565 (16-bit)

When checked, the image data will be saved in 16-bit RGB565 format, using only two bytes instead of three to store the image data.

Opacità

Questo cursore consente di impostare l'opacità dei dati dell'immagine.