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

ScalerDiv

Get the scaling result that BitMapScale would.

Declaration

Source position: agraphics.pas line 2407

function ScalerDiv(

  Factor: LongWord;

  Numerator: LongWord;

  Denominator: LongWord

):LongWord;

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