Index

Package: Image_Files

Description

package Allegro.Image_Files is

Types

A_Bitmap_Loader

type A_Bitmap_Loader is
        access function( filename : C.Strings.chars_ptr; pal : A_RGB ) return A_Bitmap;
filename is a string no longer than MAX_PATH_LEN, terminated by Nul.

A_Bitmap_Saver

type A_Bitmap_Saver is
        access function( filename : C.Strings.chars_ptr;
                         bmp      : A_Bitmap;
                         pal      : A_RGB ) return Integer;
filename is a string no longer than MAX_PATH_LEN, terminated by Nul. return zero on success, anything else on error.

Conv_Type

subtype Conv_Type is Unsigned_32;

Constants & Global variables

COLORCONV_NONE (Conv_Type)

COLORCONV_NONE      : constant Conv_Type;

COLORCONV_8_TO_15 (Conv_Type)

COLORCONV_8_TO_15   : constant Conv_Type;

COLORCONV_8_TO_16 (Conv_Type)

COLORCONV_8_TO_16   : constant Conv_Type;

COLORCONV_8_TO_24 (Conv_Type)

COLORCONV_8_TO_24   : constant Conv_Type;

COLORCONV_8_TO_32 (Conv_Type)

COLORCONV_8_TO_32   : constant Conv_Type;

COLORCONV_15_TO_8 (Conv_Type)

COLORCONV_15_TO_8   : constant Conv_Type;

COLORCONV_15_TO_16 (Conv_Type)

COLORCONV_15_TO_16  : constant Conv_Type;

COLORCONV_15_TO_24 (Conv_Type)

COLORCONV_15_TO_24  : constant Conv_Type;

COLORCONV_15_TO_32 (Conv_Type)

COLORCONV_15_TO_32  : constant Conv_Type;

COLORCONV_16_TO_8 (Conv_Type)

COLORCONV_16_TO_8   : constant Conv_Type;

COLORCONV_16_TO_15 (Conv_Type)

COLORCONV_16_TO_15  : constant Conv_Type;

COLORCONV_16_TO_24 (Conv_Type)

COLORCONV_16_TO_24  : constant Conv_Type;

COLORCONV_16_TO_32 (Conv_Type)

COLORCONV_16_TO_32  : constant Conv_Type;

COLORCONV_24_TO_8 (Conv_Type)

COLORCONV_24_TO_8   : constant Conv_Type;

COLORCONV_24_TO_15 (Conv_Type)

COLORCONV_24_TO_15  : constant Conv_Type;

COLORCONV_24_TO_16 (Conv_Type)

COLORCONV_24_TO_16  : constant Conv_Type;

COLORCONV_24_TO_32 (Conv_Type)

COLORCONV_24_TO_32  : constant Conv_Type;

COLORCONV_32_TO_8 (Conv_Type)

COLORCONV_32_TO_8   : constant Conv_Type;

COLORCONV_32_TO_15 (Conv_Type)

COLORCONV_32_TO_15  : constant Conv_Type;

COLORCONV_32_TO_16 (Conv_Type)

COLORCONV_32_TO_16  : constant Conv_Type;

COLORCONV_32_TO_24 (Conv_Type)

COLORCONV_32_TO_24  : constant Conv_Type;

COLORCONV_32A_TO_8 (Conv_Type)

COLORCONV_32A_TO_8  : constant Conv_Type;

COLORCONV_32A_TO_15 (Conv_Type)

COLORCONV_32A_TO_15 : constant Conv_Type;

COLORCONV_32A_TO_16 (Conv_Type)

COLORCONV_32A_TO_16 : constant Conv_Type;

COLORCONV_32A_TO_24 (Conv_Type)

COLORCONV_32A_TO_24 : constant Conv_Type;

COLORCONV_DITHER_PAL (Conv_Type)

COLORCONV_DITHER_PAL : constant Conv_Type;

COLORCONV_DITHER_HI (Conv_Type)

COLORCONV_DITHER_HI  : constant Conv_Type;

COLORCONV_KEEP_TRANS (Conv_Type)

COLORCONV_KEEP_TRANS : constant Conv_Type;

COLORCONV_DITHER (Conv_Type)

COLORCONV_DITHER            : constant Conv_Type;

COLORCONV_EXPAND_256 (Conv_Type)

COLORCONV_EXPAND_256        : constant Conv_Type;

COLORCONV_REDUCE_TO_256 (Conv_Type)

COLORCONV_REDUCE_TO_256     : constant Conv_Type;

COLORCONV_EXPAND_15_TO_16 (Conv_Type)

COLORCONV_EXPAND_15_TO_16   : constant Conv_Type;

COLORCONV_REDUCE_16_TO_15 (Conv_Type)

COLORCONV_REDUCE_16_TO_15   : constant Conv_Type;

COLORCONV_EXPAND_HI_TO_TRUE (Conv_Type)

COLORCONV_EXPAND_HI_TO_TRUE : constant Conv_Type;

COLORCONV_REDUCE_TRUE_TO_HI (Conv_Type)

COLORCONV_REDUCE_TRUE_TO_HI : constant Conv_Type;

COLORCONV_24_EQUALS_32 (Conv_Type)

COLORCONV_24_EQUALS_32      : constant Conv_Type;

COLORCONV_TOTAL (Conv_Type)

COLORCONV_TOTAL             : constant Conv_Type;

COLORCONV_PARTIAL (Conv_Type)

COLORCONV_PARTIAL           : constant Conv_Type;

COLORCONV_MOST (Conv_Type)

COLORCONV_MOST              : constant Conv_Type;

COLORCONV_KEEP_ALPHA (Conv_Type)

COLORCONV_KEEP_ALPHA        : constant Conv_Type;

Subprograms & Entries

Get_Color_Conversion

function Get_Color_Conversion return Conv_Type;

Load_Bitmap

function Load_Bitmap
( filename: String;
pal: A_RGB ) return A_Bitmap;

Load_BMP

function Load_BMP
( filename: String;
pal: A_RGB ) return A_Bitmap;

Load_BMP_pf

function Load_BMP_pf
( f: not null A_Packfile;
pal: A_RGB ) return A_Bitmap;

Load_LBM

function Load_LBM
( filename: String;
pal: A_RGB ) return A_Bitmap;

Load_PCX

function Load_PCX
( filename: String;
pal: A_RGB ) return A_Bitmap;

Load_PCX_pf

function Load_PCX_pf
( filename: String;
pal: A_RGB ) return A_Bitmap;

Load_TGA

function Load_TGA
( filename: String;
pal: A_RGB ) return A_Bitmap;

Load_TGA_pf

function Load_TGA_pf
( filename: String;
pal: A_RGB ) return A_Bitmap;

Register_Bitmap_File_Type

procedure Register_Bitmap_File_Type
( ext: String;
load: A_Bitmap_Loader;
save: A_Bitmap_Saver );

Save_Bitmap

function Save_Bitmap
( filename: String;
bmp: A_Bitmap;
pal: A_RGB ) return Boolean;
Returns False on error.

Save_BMP

function Save_BMP
( filename: String;
bmp: A_Bitmap;
pal: A_RGB ) return Boolean;
Returns False on error.

Save_BMP_pf

function Save_BMP_pf
( f: A_Packfile;
bmp: A_Bitmap;
pal: A_RGB ) return Boolean;
Returns False on error.

Save_PCX

function Save_PCX
( filename: String;
bmp: A_Bitmap;
pal: A_RGB ) return Boolean;
Returns False on error.

Save_PCX_pf

function Save_PCX_pf
( f: A_Packfile;
bmp: A_Bitmap;
pal: A_RGB ) return Boolean;
Returns False on error.

Save_TGA

function Save_TGA
( filename: String;
bmp: A_Bitmap;
pal: A_RGB ) return Boolean;
Returns False on error.

Save_TGA_pf

function Save_TGA_pf
( f: A_Packfile;
bmp: A_Bitmap;
pal: A_RGB ) return Boolean;
Returns False on error.

Set_Color_Conversion

procedure Set_Color_Conversion
( mode: Conv_Type );