GrafX2 2.9.3227
The ultimate 256-color painting program
|
functions relative to old computers (Commodore 64, Thomsons MO/TO, Amstrad CPC, ZX Spectrum, etc.) More...
#include "loadsave.h"
Enumerations | |
enum | MOTO_Machine_Type { MACHINE_TO7 , MACHINE_TO770 , MACHINE_MO5 , MACHINE_MO6 , MACHINE_TO9 , MACHINE_TO8 } |
to define a specific machine in the Thomson MO/TO range of machines More... | |
enum | MOTO_Graphic_Mode { MOTO_MODE_40col = 0 , MOTO_MODE_80col = 1 , MOTO_MODE_bm4 = 2 , MOTO_MODE_bm16 = 3 } |
Graphic modes available in BASIC 128/512 with CONSOLE,,,,X instruction. More... | |
Functions | |
const char * | Constraint_mode_label (enum IMAGE_MODES mode) |
identifier for each Image mode More... | |
int | Constraint_mode_from_label (const char *label) |
Search constraint mode for a label. More... | |
int | C64_FLI (T_IO_Context *context, byte *bitmap, byte *screen_ram, byte *color_ram, byte *background) |
Save a 3 layer picture to C64 FLI format. More... | |
int | C64_pixels_to_FLI (byte *bitmap, byte *screen_ram, byte *color_ram, byte *background, const byte *pixels, long pitch, int errmode) |
Convert a (1 layer) picture to C64 FLI format. More... | |
void | C64_set_palette (T_Components *palette) |
Set the 16 colors Commodore 64 palette. More... | |
void | ZX_Spectrum_set_palette (T_Components *palette) |
Set the 16 colors ZX Spectrum palette. More... | |
void | CPC_set_HW_palette (T_Components *palette) |
Set 32 color HW Amstrad CPC palette. More... | |
int | CPC_is_CPC_old_color (T_Components *col) |
Check if the color is likely to be a CPC RGB tri level color. More... | |
void | CPC_set_default_BASIC_palette (T_Components *palette) |
Set 16 color default Amstrad CPC BASIC palette. More... | |
int | CPC_compare_colors (T_Components *col1, T_Components *col2) |
compare two RGB colors More... | |
byte | CPC_Firmware_to_Hardware_color (byte fw_color) |
Convert CPC firmware color to hardware color (Gate Array) More... | |
int | CPC_check_AMSDOS (FILE *file, word *loading_address, word *exec_address, unsigned long *file_length) |
Check AMSDOS header. More... | |
int | CPC_write_AMSDOS_header (FILE *file, const char *filename, const char *ext, byte type, word load_address, word save_address, word file_length) |
Write AMSDOS header. More... | |
int | DECB_BIN_Add_Chunk (FILE *f, word size, word address, const byte *data) |
Add a chunk to a DECB binary file. More... | |
int | DECB_BIN_Add_End (FILE *f, word address) |
Add a chunk to a DECB binary file. More... | |
int | DECB_Check_binary_file (FILE *f) |
Check if the file is in the DECB Binary format. More... | |
int | MOTO_Check_binary_file (FILE *f) |
Checks if the file is a Thomson binary file (SAVEM/LOADM format) More... | |
word | MOTO_gamma_correct_RGB_to_MOTO (const T_Components *color) |
Convert a RGB value to Thomson BGR value with gamma correction. More... | |
void | MOTO_gamma_correct_MOTO_to_RGB (T_Components *color, word bgr) |
Convert a Thomson BGR value to RGB values with gamma correction. More... | |
void | MOTO_set_MO5_palette (T_Components *palette) |
Set MO5 Palette. More... | |
void | MOTO_set_TO7_palette (T_Components *palette) |
Set TO7/70 Palette. More... | |
void | HGR_set_palette (T_Components *palette) |
Set the 6 color Apple II HGR palette. More... | |
void | DHGR_set_palette (T_Components *palette) |
Set the 16 color Apple II DHGR palette. More... | |
void | MSX_set_palette (T_Components *palette) |
Set the 15 color MSX palette. More... | |
functions relative to old computers (Commodore 64, Thomsons MO/TO, Amstrad CPC, ZX Spectrum, etc.)
const char * Constraint_mode_label | ( | enum IMAGE_MODES | mode | ) |
identifier for each Image mode
References image_modes_labels, mode, and NULL.
Referenced by Save_GIF().
int Constraint_mode_from_label | ( | const char * | label | ) |
Search constraint mode for a label.
References image_modes_labels, and label.
Referenced by Load_GIF().
void MSX_set_palette | ( | T_Components * | palette | ) |
Set the 15 color MSX palette.
References T_Components::B, T_Components::G, and T_Components::R.
Referenced by Button_Constraint_menu(), and Load_MSX().