GrafX2 2.9.3227
The ultimate 256-color painting program
|
#include <loadsave.h>
Data Fields | |
enum CONTEXT_TYPE | Type |
Kind of context. Internally used to differentiate the "sub-classes". More... | |
char * | File_name |
File name in UTF-8 (or short ASCII file nmae under win32) More... | |
word * | File_name_unicode |
Wide character version of the filename. More... | |
char * | File_directory |
Directory. If NULL File_name should be the full path name. More... | |
byte | Format |
T_Palette | Palette |
short | Width |
short | Height |
short | Original_width |
short | Original_height |
Size of the whole image in case of PREVIEW of a thumbnail. More... | |
int | Nb_layers |
char | Comment [COMMENT_SIZE+1] |
byte | Background_transparent |
byte | Transparent_color |
byte | bpp |
enum PIXEL_RATIO | Ratio |
Pixel ratio of the image. More... | |
byte * | Target_address |
Load/save address of first pixel. More... | |
long | Pitch |
Pitch: Difference of addresses between one pixel and the one just "below" it. More... | |
char * | Original_file_name |
Original file name, stored in GIF file. More... | |
char * | Original_file_directory |
Original file directory, stored in GIF file. More... | |
byte | Color_cycles |
T_Color_cycle | Cycle_range [16] |
int | Current_layer |
Internal: during load, marks which layer is being loaded. More... | |
T_Components * | Buffer_image_24b |
Internal: Used to mark truecolor images on loading. Only used by preview. More... | |
byte * | Buffer_image |
Internal: Temporary buffer when saving the flattened copy of something. More... | |
short | Preview_factor_X |
short | Preview_factor_Y |
short | Preview_pos_X |
short | Preview_pos_Y |
byte * | Preview_bitmap |
byte | Preview_usage [256] |
T_GFX2_Surface * | Surface |
enum CONTEXT_TYPE T_IO_Context::Type |
Kind of context. Internally used to differentiate the "sub-classes".
Referenced by Button_Load_or_Save(), Fill_canvas(), Get_frame_duration(), Get_image_mode(), Init_context_brush(), Init_context_layered_image(), Init_context_preview(), Init_context_surface(), Init_program(), Load_C64_fli(), Load_CM5(), Load_FLI(), Load_GIF(), Load_HGR(), Load_IFF(), Load_image(), Load_INFO(), Load_picture(), Load_SCR(), Load_TIFF_Sub(), Pre_load(), Save_GIF(), Save_image(), Save_picture(), Save_TIFF_Sub(), Set_frame_duration(), Set_image_mode(), Set_loading_layer(), Set_pixel(), Set_pixel_24b(), Set_saving_layer(), Test_C64_Formats(), Test_Load(), and Test_Save().
char* T_IO_Context::File_name |
File name in UTF-8 (or short ASCII file nmae under win32)
Referenced by Button_Load_or_Save(), context_set_file_path(), Destroy_context(), Init_context_brush(), Init_context_layered_image(), Init_context_preview(), Init_context_surface(), Load_ClipBoard_Image(), Load_image(), Load_MOTO(), Load_picture(), Load_Recoil_Image(), Load_TIFF(), Open_file_read(), Open_file_read_with_alternate_ext(), Open_file_write(), Open_file_write_with_alternate_ext(), Remove_file(), Save_C64(), Save_GPL(), Save_NEO(), Save_picture(), Save_SCR(), Save_SCx(), Save_TIFF(), Test_C64_Formats(), Test_Formats(), Test_Load(), Test_MOTO(), and Test_Save().
word* T_IO_Context::File_name_unicode |
Wide character version of the filename.
Referenced by Button_Autosave(), Button_Load_or_Save(), Button_Quit_local_function(), Destroy_context(), Init_program(), Load_image(), Load_picture(), Load_Recoil_Image(), Main_handler(), Open_file_read_with_alternate_ext(), Open_file_write(), Open_file_write_with_alternate_ext(), Save_picture(), Save_SCx(), and Save_TIFF().
char* T_IO_Context::File_directory |
Directory. If NULL File_name should be the full path name.
Referenced by Button_Load_or_Save(), context_set_file_path(), Destroy_context(), Init_context_brush(), Init_context_layered_image(), Init_context_preview(), Init_context_surface(), Load_ClipBoard_Image(), Load_image(), Load_MOTO(), Load_picture(), Load_TIFF(), Open_file_read(), Open_file_read_with_alternate_ext(), Open_file_write(), Open_file_write_with_alternate_ext(), Remove_file(), Save_picture(), Save_TIFF(), Test_C64_Formats(), Test_Formats(), Test_Load(), Test_MOTO(), and Test_Save().
byte T_IO_Context::Format |
Referenced by Button_Load_or_Save(), Init_context_brush(), Init_context_layered_image(), Init_context_surface(), Init_program(), Load_ClipBoard_Image(), Load_image(), Load_picture(), Main_handler(), Pre_load(), Rotate_safety_backups(), Save_IFF(), Save_image(), Save_picture(), Test_C64_Formats(), and Test_Save().
T_Palette T_IO_Context::Palette |
Referenced by Draw_IFF_line_HAM(), Init_context_brush(), Init_context_layered_image(), Load_2GS(), Load_BMP_Palette(), Load_C64(), Load_CA1(), Load_ClipBoard_Image(), Load_CM5(), Load_FLI(), Load_GIF(), Load_GOS(), Load_GPL(), Load_GPX(), Load_GRB(), Load_HGR(), Load_IFF(), Load_image(), Load_IMG(), Load_INFO(), Load_KCF(), Load_MOTO(), Load_MSX(), Load_NEO(), Load_PAL(), Load_PC1(), Load_PCX(), Load_PI1(), Load_PKM(), Load_PPH(), Load_PRG(), Load_Recoil_Image(), Load_SCR(), Load_SCx(), Load_TIFF_Sub(), Load_TNY(), Pre_load(), RAST_chunk_decode(), Save_2GS(), Save_BMP(), Save_CA1(), Save_ClipBoard_Image(), Save_GIF(), Save_GOS(), Save_GPL(), Save_ICO(), Save_IFF(), Save_IMG(), Save_KCF(), Save_MOTO(), Save_NEO(), Save_PAL(), Save_PC1(), Save_PCX(), Save_PI1(), Save_PKM(), Save_PNG_Sub(), Save_SCR(), Save_SCx(), Save_TIFF_Sub(), Save_TNY(), Save_XPM(), Set_SGX_Palette(), Test_C64_Formats(), and Test_Save().
short T_IO_Context::Width |
Referenced by C64_FLI(), Current_layer_count_used_colors(), Draw_IFF_line(), Draw_IFF_line_HAM(), Draw_IFF_line_PCHG(), Draw_PCX_line(), Get_pixel(), Init_context_brush(), Init_context_layered_image(), LBM_Decode(), Load_BMP_Pixels(), Load_CEL(), Load_CM5(), Load_IFF(), Load_image(), Load_IMG(), Load_PCX(), Load_PKM(), Load_SCx(), Load_TIFF_image(), Load_TIFF_Sub(), Pre_load(), raw2crtc(), Save_2GS(), Save_BMP(), Save_C64(), Save_CEL(), Save_ClipBoard_Image(), Save_GIF(), Save_GOS(), Save_HGR(), Save_ICO(), Save_IFF(), Save_IMG(), Save_MOTO(), Save_PCX(), Save_PKM(), Save_PNG_Sub(), Save_PRG(), Save_SCR(), Save_SCx(), Save_SGX_Sub(), Save_TIFF_Sub(), Save_XPM(), Set_pixel(), Set_pixel_24b(), Test_C64_Formats(), and Test_Save().
short T_IO_Context::Height |
Referenced by C64_FLI(), Current_layer_count_used_colors(), Fill_canvas(), Get_pixel(), Init_context_brush(), Init_context_layered_image(), LBM_Decode(), Load_BMP_Pixels(), Load_CEL(), Load_CM5(), Load_IFF(), Load_image(), Load_IMG(), Load_PCX(), Load_PKM(), Load_SCx(), Load_TIFF_image(), Load_TIFF_Sub(), Pre_load(), raw2crtc(), Save_2GS(), Save_BMP(), Save_C64(), Save_CEL(), Save_ClipBoard_Image(), Save_GIF(), Save_GOS(), Save_HGR(), Save_ICO(), Save_IFF(), Save_IMG(), Save_MOTO(), Save_PCX(), Save_PKM(), Save_PNG_Sub(), Save_PRG(), Save_SCR(), Save_SCx(), Save_SGX_Sub(), Save_TIFF_Sub(), Save_XPM(), Set_pixel(), Set_pixel_24b(), Test_C64_Formats(), and Test_Save().
short T_IO_Context::Original_width |
Referenced by Load_IFF(), and Pre_load().
short T_IO_Context::Original_height |
Size of the whole image in case of PREVIEW of a thumbnail.
Referenced by Load_IFF(), and Pre_load().
int T_IO_Context::Nb_layers |
char T_IO_Context::Comment[COMMENT_SIZE+1] |
Referenced by Button_Load_or_Save(), Init_context_layered_image(), Load_2GS(), Load_C64(), Load_GIF(), Load_GPL(), Load_GPX(), Load_IFF(), Load_image(), Load_INFO(), Load_MOTO(), Load_PKM(), Load_Recoil_Image(), Load_SCR(), Load_TIFF_Sub(), Pre_load(), Save_GIF(), Save_IFF(), Save_MOTO(), Save_PKM(), Save_PNG_Sub(), and Save_TIFF_Sub().
byte T_IO_Context::Background_transparent |
byte T_IO_Context::Transparent_color |
Referenced by GIF_new_pixel(), Init_context_brush(), Init_context_layered_image(), Init_context_surface(), Load_BMP_Pixels(), Load_C64(), Load_GIF(), Load_GPX(), Load_ICO(), Load_IFF(), Load_image(), Load_INFO(), Load_MSX(), Load_PRG(), Load_TIFF_Sub(), Pre_load(), Save_GIF(), Save_ICO(), Save_IFF(), Save_PNG_Sub(), Save_TIFF_Sub(), Save_XPM(), and Set_pixel().
byte T_IO_Context::bpp |
Referenced by Load_image(), Load_TIFF_Sub(), and Pre_load().
enum PIXEL_RATIO T_IO_Context::Ratio |
Pixel ratio of the image.
Referenced by Button_Reload(), Init_context_brush(), Init_context_layered_image(), Init_context_surface(), Load_C64(), Load_GPX(), Load_image(), Load_picture(), Load_PPH(), Load_PRG(), Pre_load(), Save_GIF(), Save_IFF(), Save_SCR(), Save_TIFF_Sub(), Set_pixel(), Test_C64_Formats(), and Test_Save().
byte* T_IO_Context::Target_address |
Load/save address of first pixel.
Referenced by Get_pixel(), Init_context_brush(), Init_context_layered_image(), Load_IFF(), Pre_load(), Save_C64_fli_monolayer(), Save_GOS(), Save_image(), Save_PNG_Sub(), Save_TIFF_Sub(), Save_TNY(), Set_loading_layer(), Set_saving_layer(), Test_C64_Formats(), and Test_Save().
long T_IO_Context::Pitch |
Pitch: Difference of addresses between one pixel and the one just "below" it.
Referenced by Fill_canvas(), Get_pixel(), Init_context_brush(), Init_context_layered_image(), Load_IFF(), Pre_load(), Save_C64_fli_monolayer(), Save_GOS(), Save_PNG_Sub(), Save_TIFF_Sub(), Save_TNY(), Set_pixel(), Test_C64_Formats(), and Test_Save().
char* T_IO_Context::Original_file_name |
Original file name, stored in GIF file.
Referenced by Destroy_context(), Load_GIF(), Load_image(), Rotate_safety_backups(), and Save_GIF().
char* T_IO_Context::Original_file_directory |
Original file directory, stored in GIF file.
Referenced by Destroy_context(), Load_GIF(), Load_image(), Rotate_safety_backups(), and Save_GIF().
byte T_IO_Context::Color_cycles |
T_Color_cycle T_IO_Context::Cycle_range[16] |
int T_IO_Context::Current_layer |
Internal: during load, marks which layer is being loaded.
Referenced by Fill_canvas(), Get_frame_duration(), Set_frame_duration(), Set_loading_layer(), Set_pixel(), and Set_saving_layer().
T_Components* T_IO_Context::Buffer_image_24b |
Internal: Used to mark truecolor images on loading. Only used by preview.
Internal: Temporary RGB buffer when loading 24bit images
Referenced by Destroy_context(), Load_image(), Pre_load(), and Set_pixel_24b().
byte* T_IO_Context::Buffer_image |
Internal: Temporary buffer when saving the flattened copy of something.
Referenced by Destroy_context(), Fill_canvas(), Load_image(), Pre_load(), and Set_pixel().
short T_IO_Context::Preview_factor_X |
Referenced by Load_image(), Pre_load(), Set_pixel(), and Set_pixel_24b().
short T_IO_Context::Preview_factor_Y |
Referenced by Load_image(), Pre_load(), Set_pixel(), and Set_pixel_24b().
short T_IO_Context::Preview_pos_X |
Referenced by Load_image(), and Pre_load().
short T_IO_Context::Preview_pos_Y |
Referenced by Load_image(), and Pre_load().
byte* T_IO_Context::Preview_bitmap |
Referenced by Destroy_context(), Fill_canvas(), Load_image(), Pre_load(), Set_pixel(), and Set_pixel_24b().
byte T_IO_Context::Preview_usage[256] |
Referenced by Load_image(), Set_pixel(), and Set_pixel_24b().
T_GFX2_Surface* T_IO_Context::Surface |
Referenced by Load_image(), Load_surface(), Pre_load(), Set_pixel(), Test_C64_Formats(), Test_Load(), and Test_Save().