BZoomSetScaleSteps

#include "BIDISP.H"

 

BOOL CALLBACK BZoomSetScaleSteps(                              int   base,
                LPZOOMSTEPS  enlarge,
                LPZOOMSTEPS  reduce)

Description

This function defines the scaling factor tables when the image is reduced or enlarged by the zoom with step function. The base parameter defines a basic scale factor (the default is 10) in range 1 to 1000. The enlarge structure defines the scale factors (the defaults are 10, 20, 40, 60, 80) when the image is enlarged. The enlarge parameter defines the scale factors (the defaults are 10, 15, 30, 40, 50) when the image is reduced. Scaling factors can be defined up to 10. The real scaling factor can be calculated

            enlarge->step[i]/scale_base

or

            scale_base/reduce->step[i]

Parameters

int

base

Defines the basic scale factor

LPZOOMSTEPS

enlarge

Pointer to a structure containing the scaling factors used when the image is enlarged. (The defaults are 10, 20, 40, 60, 80)

The first factor must have the same value as the base scale factor.

The factors have to be sorted in increasing order.

Duplicated values are not allowed.

LPZOOMSTEPS

reduce

Pointer to a structure containing the scaling factors used when the image is reduced (The defaults are 10, 15, 30, 40, 50)
The first factor must have the same value as the basic scale factor.
The factors have to be sorted in increasing order.
Duplicated values are not allowed.

Return values

TRUE if the scale steps were successfully updated, otherwise FALSE.

Requirements

Header :     Declared in BIDisp.h; include BIDisp.h.

Library :    Use BIDisp.lib.

DLLs :       BIDisp.dll.