scale_px Function

public pure function scale_px(px, dpi) result(scaled)

Scale a pixel value from reference DPI (100) to target DPI. At REFERENCE_DPI the value is unchanged.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: px
real(kind=wp), intent(in) :: dpi

Return Value integer