PDA

Click to See Complete Forum and Search --> : Textout & Pixel


AngryT
Oct 6th, 2000, 04:46 PM
I use the following API:

Declare Function TextOut Lib "gdi32" Alias "TextOutA" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal lpString As String, ByVal nCount As Long) As Long

For x and y you must write some values in pixel. However, are they on every printer the same or do they depend on the solution of every printer ? And does anybody know how many
pixels are one cm ?

Thanks a lot for help,

Thomas

Arcom
Oct 7th, 2000, 04:45 PM
If you are printing using VB's Printer object, then just set the ScaleMode to pixels.

BTW: 1 cm = 567 twips
1 cm = approx. 38-39 pixels