//Resampling function identifiers

rNearestResampler : integer;

rBiLinearResampler : integer;

rBiCubicResampler : integer;

DefaultResampler: integer;

//Both MulTable and DivTable are used in blend functions
MulTable[a,b] = a * b / 255

MulTable: array [Byte, Byte] of Byte;

//DivTable[a,b] = a * 255/b (for a <= b)

DivTable: array [Byte, Byte] of Byte;

//Screen scale is the measure of the primary display's pixel density relative to the former 'standard' 96 pixels per inch (aka dots per inch). Most modern screens - including desktop, tablet and phone screens - now have higher pixel densities than 96ppi. Nevertheless, understanding and accommodating varying screen scales is particularly important to avoid problems when images are scaled as this degrades image quality. (And this is particularly noticeable when rendering text.) To accommodate screen scaling, two useful variables have been defined - DpiAware1 and DpiAwareOne (see below). These two variables (integer and double respectively) are automatically initialized on application startup and represent the screen's scale relative to 96ppi. These variables can be used either directly or indirectly via the DpiAware function. DpiAware function scales values relative to the screen's geometry.

DpiAwareOne: double;

//Equivalent to ScreenScale (works cross-platform)

DpiAware1: integer;

// DpiAware1 = Round(DpiAwareOne)

//ClockwiseRotationIsAnglePositive: this variable sets the behavior for all rotation routines within the library.
//Default = true.

ClockwiseRotationIsAnglePositive: Boolean;

See Also