Why Delphi drawing functions draw one pixel short?
Answer / Lokesh Kumar
In Delphi, some drawing functions like `Canvas.TextWidth` and `Canvas.TextHeight` return the width and height of a string excluding the last pixel due to rounding issues when calculating the text size. To account for this, you can add one pixel to the calculated width or height as needed.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are IDAPI and SQL links ?
Where is "View | Project Source" ?
Does Delphi 5 include Resource Workshop and InstallShield Express?
How to Change delphi default directory?
How to Convert 16bit resource to 32bit?
How to change a specific IDAPI configuration setting?
How to draw directly on the Windows Desktop?
How to Migrate a project from Delphi 1 or 2 to Delphi 3 ?
Write a program to show the memory leak?
How to Trapp non client areas ?
How to Get the filename and path of a local table?
Explain Drag and Drop with Files?