Index

Package: Scaling

Description

package Scaling is

Types

Filter_Type

type Filter_Type is
    (
        Filter_Nearest,    -- effectively no filter
        Filter_Quality,    -- choose best looking filter
        Filter_HQX,
        Filter_2xSaI,
        Filter_Eagle,
        Filter_ScaleX
    );

References:

scaling.ads:6:10 (declaration)
scaling.adb:49:38 (reference)
scaling.adb:50:24 (reference)
scaling.adb:190:35 (reference)
scaling.adb:190:50 (reference)
scaling.adb:191:32 (reference)
scaling.adb:192:18 (reference)
scaling.adb:194:19 (reference)
scaling.ads:35:38 (reference)
scaling.ads:40:35 (reference)
scaling.ads:40:50 (reference)
scaling.ads:41:32 (reference)
themes.adb:228:78 (reference)
themes.adb:342:44 (reference)
themes.adb:346:28 (reference)
themes.ads:97:78 (reference)
themes.ads:129:44 (reference)
themes.ads:152:25 (reference)
widgets-containers-windows.adb:21:38 (reference)
widgets-containers-windows.adb:42:35 (reference)
widgets-containers-windows.ads:20:38 (reference)
widgets-containers-windows.ads:98:30 (reference)
widgets-containers-windows.ads:116:35 (reference)

Constants & Global variables

INIT_EXCEPTION

INIT_EXCEPTION : exception;

References:

scaling.ads:16:5 (declaration)
scaling.adb:25:23 (reference)

Subprograms & Entries

Initialize

procedure Initialize
( color_depth: Integer );

References:

scaling.ads:21:15 (declaration)
applications.adb:502:17 (reference)
scaling.adb:20:15 (body)
scaling.adb:29:9 (label)

Called by:

Applications.Init defined at applications.ads:113:14
Raises INIT_EXCEPTION with message if not successful.

Finalize

procedure Finalize;

References:

scaling.ads:23:15 (declaration)
applications.adb:180:17 (reference)
scaling.adb:33:15 (body)
scaling.adb:40:9 (label)

Scale

procedure Scale
( src, dst: not null A_Bitmap;
src_width, src_height: Positive;
magnification: Float;
filter: Filter_Type := Filter_Nearest );

References:

scaling.ads:30:15 (declaration)
scaling.adb:44:15 (body)
scaling.adb:185:9 (label)
widgets-containers-windows.adb:310:13 (reference)
widgets-containers.adb:132:17 (reference)
widgets.adb:320:21 (reference)
Scales the upper left corner of the source bitmap onto the upper left corner of the destination bitmap. The filter type is used to do the scale if it is available for the given magnification. If the requested filter can't scale to the requested magnification, the default filter is used. Note: This procedure is not thread-safe.

To_Filter

function To_Filter
( name: String;
default: Filter_Type := Filter_Type'First )
return Filter_Type;

References:

scaling.ads:39:14 (declaration)
scaling.adb:189:14 (body)
scaling.adb:202:9 (label)
game_views-keen.adb:396:42 (reference)

Called by:

Game_Views.Keen.Populate_View defined at game_views-keen.ads:97:15
Filter names are Filter_Type members without the Filter_ prefix. If the name doesn't match a filter, 'default' will be returned.