New to Telerik Document ProcessingStart a free 30-day trial

Device Independent Pixels

Updated on May 11, 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 a bunch of methods for converting from DIPs to other measurement units and vice versa (e.g. points, picas, centimeters, inches, etc.).

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);

except the DipToUnit and UnitToDip methods which accepts not only the units but the UnitType as well 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);
In this article
UnitHelper class
Not finding the help you need?
Contact Support