Unit 'agraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#aros]

ScalerDiv

Get the scaling result that BitMapScale would.

Declaration

Source position: agraphics.pas line 2154

function ScalerDiv(

  Factor: LongWord;

  Numerator: LongWord;

  Denominator: LongWord

):Word;

Arguments

Factor

  

A number in the range 0..16383

Numerator

  

A number in the range 0..16383

Denominator

  

A number in the range 0..16383

Function result

Returns factor * numerator / denominator

Description

Calculate the expression (factor * numerator / denominator) such that the result is the same as the width of the destination result of BitMapScale() when the factor here is the width of the source, and the numerator and denominator are the XDestFactor and XSrcFactor for BitMapScale().

See also

BitMapScale

  

Perform raster scaling on a bit map.


Documentation generated on: 2021-07-30