GFXprim
2D bitmap graphics library with emphasis on speed and correctness

DPI calculation and conversions. More...
#include <core/gp_debug.h>
Go to the source code of this file.
Functions  
static unsigned int  gp_dpi_from_size (unsigned int w, unsigned int w_mm, unsigned int h, unsigned int h_mm) 
Calculates DPI from display physical size and resolution.  
static float  gp_dpi_to_ppmm (unsigned int dpi) 
Converts DPI to dots/pixels per mm.  
static gp_size  gp_dpi_mm_to_px (unsigned int dpi, float mm) 
Converts milimeters to pixels.  
DPI calculation and conversions.
Definition in file gp_dpi.h.

inlinestatic 

inlinestatic 
Converts milimeters to pixels.
dpi  A DPI usually backend>dpi. 
mm  Size in milimeters. 
Definition at line 53 of file gp_dpi.h.
References gp_dpi_to_ppmm().

inlinestatic 
Converts DPI to dots/pixels per mm.
dpi  A DPI usually backend>dpi. 
Definition at line 41 of file gp_dpi.h.
Referenced by gp_dpi_mm_to_px().