Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. printing a bit thinner line... [modified]

printing a bit thinner line... [modified]

Scheduled Pinned Locked Moved Visual Basic
question
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BooleanTrue
    wrote on last edited by
    #1

    Hello! I am using a Pen: dim myPen as pen myPen = new pen(Color.Black,1) if i use 'myPen' to draw a rectangle/Line and then print that rectangle/Line it is of thickness '1'. Which seems quite thick when printed. How can i print a line/BOX with line thickness '0.25' OR '0.50' instead of '1'. Thank you -- modified at 9:10 Friday 2nd November, 2007

    colgateas900197

    B 1 Reply Last reply
    0
    • B BooleanTrue

      Hello! I am using a Pen: dim myPen as pen myPen = new pen(Color.Black,1) if i use 'myPen' to draw a rectangle/Line and then print that rectangle/Line it is of thickness '1'. Which seems quite thick when printed. How can i print a line/BOX with line thickness '0.25' OR '0.50' instead of '1'. Thank you -- modified at 9:10 Friday 2nd November, 2007

      colgateas900197

      B Offline
      B Offline
      BrokenS
      wrote on last edited by
      #2

      Did you try this? dim myPen as pen myPen = new pen(Color.Black,0.25) Ken

      B 1 Reply Last reply
      0
      • B BrokenS

        Did you try this? dim myPen as pen myPen = new pen(Color.Black,0.25) Ken

        B Offline
        B Offline
        BooleanTrue
        wrote on last edited by
        #3

        yes! i do. what ever you write less than 1 it draws line of width 1 by default.

        colgateas900197

        L 1 Reply Last reply
        0
        • B BooleanTrue

          yes! i do. what ever you write less than 1 it draws line of width 1 by default.

          colgateas900197

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          Do you generate a bitmap at screen resolution and print that? or do you call OnPaint() to generate the printed page with appropriate PaintEventArgs? in the first case, your 1-screen-pixel-thick line will be rescaled to the printer's resolution, resulting in thick lines and rough fonts. :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          this months tips: - use PRE tags to preserve formatting when showing multi-line code snippets - before you ask a question here, search CodeProject, then Google


          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups