Method FromPixels
Namespace TallComponents.PDF.Layout
Struct Unit
Create a unit from pixels and a resolution. Useful for working with images.
Default resolution for screen display is normally 72dpi, though 96dpi is used by GDI+.
Syntax
public
Unit
FromPixels(
Int32
pixels
,
Double
dpi
)
Returns
Unit
Parameters
Int32
pixels
Length in pixels
Double
dpi
Resolution in dpi (Dots Per Inch)