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. C#
  4. changing resolution (dpi)

changing resolution (dpi)

Scheduled Pinned Locked Moved C#
helpquestion
2 Posts 2 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.
  • S Offline
    S Offline
    stephan_007
    wrote on last edited by
    #1

    hy everyone! I do have a problem: I insert a picture in an application and try to fetch it again with my tool. the strange thing is although i insert 300x300 dpi pics when fetching they are 299x299 dpi. after fetching they should be converted to a pdf, but it doesn't accept the 299x299 dpi, but it works fine with 300x300 dpi. (it throws an error it can't handle the format because it is unknown) is there a chance to check this and to correct it to 300 dpi? to change it to 300 dpi hardcoded isn't a good idea because there could be 600x600 dpi pics as well etc. but i wonder, where this 1 dpi was lost and why! anyone of you a clue? thanks! stephan.

    L 1 Reply Last reply
    0
    • S stephan_007

      hy everyone! I do have a problem: I insert a picture in an application and try to fetch it again with my tool. the strange thing is although i insert 300x300 dpi pics when fetching they are 299x299 dpi. after fetching they should be converted to a pdf, but it doesn't accept the 299x299 dpi, but it works fine with 300x300 dpi. (it throws an error it can't handle the format because it is unknown) is there a chance to check this and to correct it to 300 dpi? to change it to 300 dpi hardcoded isn't a good idea because there could be 600x600 dpi pics as well etc. but i wonder, where this 1 dpi was lost and why! anyone of you a clue? thanks! stephan.

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      You can check/set the DPI within a Graphics object, but I am not sure how you process the image.

      xacc.ide - now with TabsToSpaces support
      IronScheme - 1.0 alpha 4 out now (27 May 2008)

      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