Img32

//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 - DpiAwareI and DpiAwareD (see below). These two variables (a double and a rounded integer 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.

DpiAwareI: double;

DpiAwareD: double;


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

ClockwiseRotationIsAnglePositive: Boolean;

See Also

DpiAware