[]
The rendering APIs use two unit systems:
API | Unit | Based on |
|---|---|---|
| Points | 1/72 inch |
| Pixels | 1/96 inch |
Use C1XLBook.TwipsToPixels to convert points to pixels:
int widthPx = C1XLBook.TwipsToPixels(20 * widthInPoints);C1XLBook.TwipsToPixels is available in the C1.Excel namespace. In the .NET Standard build, it uses a fixed 96 DPI, so the conversion is pixels = points × 96 / 72 (equivalently, twips / 15).