GrafX2 2.9.3227
The ultimate 256-color painting program
|
Formats for the Apple II GS Support APF = Apple Preferred Format. More...
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "global.h"
#include "fileformats.h"
#include "loadsavefuncs.h"
#include "io.h"
#include "gfx2mem.h"
#include "gfx2log.h"
#include "packbytes.h"
Data Structures | |
struct | line_data |
Macros | |
#define | COMPONENTS(x) linepal[x].R, linepal[x].G, linepal[x].B |
#define | WRITE2GS_PIXELS |
set the (2 or 4) pixels for the byte. More... | |
Functions | |
void | Test_2GS (T_IO_Context *context, FILE *file) |
Test for an Apple 2 GS picture file. More... | |
static int | Load_2GS_Palette (T_Components *palette, FILE *file) |
Load a 16 entry Apple II GS palette from file. More... | |
void | Load_2GS (T_IO_Context *context) |
static int | Save_2GS_Palette_Entry (FILE *file, const T_Components *palette) |
Save a 16 entry Apple II GS palette to file. More... | |
void | Save_2GS (T_IO_Context *context) |
Formats for the Apple II GS Support APF = Apple Preferred Format.
#define COMPONENTS | ( | x | ) | linepal[x].R, linepal[x].G, linepal[x].B |
#define WRITE2GS_PIXELS |
set the (2 or 4) pixels for the byte.
|
static |
Load a 16 entry Apple II GS palette from file.
References T_Components::B, T_Components::G, T_Components::R, and Read_word_le().
Referenced by Load_2GS().
|
static |
Save a 16 entry Apple II GS palette to file.
References T_Components::B, T_Components::G, T_Components::R, and Write_word_le().
Referenced by Save_2GS().