(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/graphics.h>

UWORD ScalerDiv (factor , numerator , denominator)

LOCATION
In GfxBase at offset 114

SYNOPSIS
UWORD factor
UWORD numerator
UWORD denominator

FUNCTION
Use this to precalculate the width/height of the destination bitmap. As factor give the width/height of the original bitmap that is to be scaled via ScaleBitMap(), as numerator give the value you will write into bsa_XSrcFactor/bsa_YSrcFactor and as denominator the value of bsa_XDestFactor/bsa_YDestFactor.

INPUTS
factor
a number in the range of 0..16383
numerator
a number in the range of 1..16383
denominator
a number in the range of 1..16383

RESULT

EXAMPLE

SEE ALSO
BitMapScale()

NOTES

BUGS

INTERNALS

HISTORY