New to Telerik Document ProcessingStart a free 30-day trial

Device Independent Pixels

Updated on Jun 5, 2026

Device Independent Pixels (DIPs) is a unit type used in the Document Processing libraries in the following cases:

UnitHelper Class

The UnitHelper class provides several methods for converting from DIPs to other measurement units and vice versa (for example, points, picas, centimeters, and inches).

Convert from DIP to Unit

MethodDescription
DipToPointConverts DIPs to points.
DipToPointIConverts DIPs to points.
DipToPicaConverts DIPs to picas.
DipToCmConverts DIPs to centimeters.
DipToMmConverts DIPs to millimeters.
DipToInchConverts DIPs to inches.
DipToTwipConverts DIPs to twips.
DipToEmuConverts DIPs to EMUs.
DipToTwipIConverts DIPs to twips.
DipToTwipFConverts DIPs to twips.
DipToUnitConverts DIPs to units.

Convert from Unit to DIP

MethodDescription
PointToDipConverts points to DIPs.
PicaToDipConverts picas to DIPs.
EmuToDipConverts EMUs to DIPs.
CmToDipConverts centimeters to DIPs.
MmToDipConverts millimeters to DIPs.
InchToDipConverts inches to DIPs.
TwipToDipConverts twips to DIPs.
TwipToDipFConverts twips to DIPs.
TwipToDipIConverts twips to DIPs.
UnitToDipConverts units to DIPs.

Most of the methods follow the same pattern for converting units.

Example 1 shows how to obtain row height as DIPs and convert it to points.

Example 1: Convert from DIP to Point

csharp

	var rowHeightInDips = worksheet.Rows[0].GetHeight().Value.Value;
	var rowHeightInPoints = UnitHelper.DipToPoint(rowHeightInDips);

The DipToUnit and UnitToDip methods accept not only the units but also the UnitType as a parameter:

Example 2 shows how to convert from point to DIP and set the row height.

Example 2: Convert from Point to DIP

csharp

	double dips = UnitHelper.UnitToDip(60, UnitType.Point);
	RowHeight newRowHeight = new RowHeight(dips, isCustom: true);
	worksheet.Rows[0].SetHeight(newRowHeight);