Results 1 to 2 of 2

Thread: Textout & Pixel

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    Vienna
    Posts
    24

    Question

    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

  2. #2
    Addicted Member
    Join Date
    Aug 2000
    Location
    Croatia
    Posts
    200
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width