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 / C++ / MFC
  4. Displaying PNG File properly

Displaying PNG File properly

Scheduled Pinned Locked Moved C / C++ / MFC
jsonhelptutorial
5 Posts 4 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.
  • V Offline
    V Offline
    Vineet Kumar
    wrote on last edited by
    #1

    Hi, I have some PNG files, which are not displaying properly in my application control, while they are opening perfectly fine in the browser. some of the files , which is creating problem have the foll. info.. Bit depth - 24 Width - 96 pixels Height - 96 pixels Horizontal Resolution - 96 dpi Vertical Resolution - 96 dpi some files, which are opening properly have the foll. info.. Bit depth - 24 Width - 48 pixels Height - 48 pixels Horizontal Resolution - 96 dpi Vertical Resolution - 96 dpi i tried to use the libpng, to convert the files, in to the dimension , which is converting properly..but could not found the solution. Can u pl. suggest something.. how to display them properly or what API should I use for the conversion. Thanks.

    Vineet Kumar Singhal Sr.Software Engineer Mumbai Tough Time Never last, but Tough People do.

    P H J 3 Replies Last reply
    0
    • V Vineet Kumar

      Hi, I have some PNG files, which are not displaying properly in my application control, while they are opening perfectly fine in the browser. some of the files , which is creating problem have the foll. info.. Bit depth - 24 Width - 96 pixels Height - 96 pixels Horizontal Resolution - 96 dpi Vertical Resolution - 96 dpi some files, which are opening properly have the foll. info.. Bit depth - 24 Width - 48 pixels Height - 48 pixels Horizontal Resolution - 96 dpi Vertical Resolution - 96 dpi i tried to use the libpng, to convert the files, in to the dimension , which is converting properly..but could not found the solution. Can u pl. suggest something.. how to display them properly or what API should I use for the conversion. Thanks.

      Vineet Kumar Singhal Sr.Software Engineer Mumbai Tough Time Never last, but Tough People do.

      P Offline
      P Offline
      Paresh Chitte
      wrote on last edited by
      #2

      Could you please tell, what do you mean by "Not Diplaying properly", are they distort, not seen, or partially seen ? Regards, Paresh.

      V 1 Reply Last reply
      0
      • V Vineet Kumar

        Hi, I have some PNG files, which are not displaying properly in my application control, while they are opening perfectly fine in the browser. some of the files , which is creating problem have the foll. info.. Bit depth - 24 Width - 96 pixels Height - 96 pixels Horizontal Resolution - 96 dpi Vertical Resolution - 96 dpi some files, which are opening properly have the foll. info.. Bit depth - 24 Width - 48 pixels Height - 48 pixels Horizontal Resolution - 96 dpi Vertical Resolution - 96 dpi i tried to use the libpng, to convert the files, in to the dimension , which is converting properly..but could not found the solution. Can u pl. suggest something.. how to display them properly or what API should I use for the conversion. Thanks.

        Vineet Kumar Singhal Sr.Software Engineer Mumbai Tough Time Never last, but Tough People do.

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        Hope I understood your question if you want to detaily of image(png) you can use of CImage class


        WhiteSky


        1 Reply Last reply
        0
        • P Paresh Chitte

          Could you please tell, what do you mean by "Not Diplaying properly", are they distort, not seen, or partially seen ? Regards, Paresh.

          V Offline
          V Offline
          Vineet Kumar
          wrote on last edited by
          #4

          here I mean that the images are distorted.if i open it with "Windows Picture and Fax Viewer" it shows distorted. if I open it on a web control /ACDsee, it opens perfectly fine. I am displaying at 2 locations.. at the lacation where web control is opening it, it works fine.., while for the second control, which is a static image control,is displaying it distorted. Regs

          Vineet Kumar Singhal Sr.Software Engineer Mumbai Tough Time Never last, but Tough People do.

          1 Reply Last reply
          0
          • V Vineet Kumar

            Hi, I have some PNG files, which are not displaying properly in my application control, while they are opening perfectly fine in the browser. some of the files , which is creating problem have the foll. info.. Bit depth - 24 Width - 96 pixels Height - 96 pixels Horizontal Resolution - 96 dpi Vertical Resolution - 96 dpi some files, which are opening properly have the foll. info.. Bit depth - 24 Width - 48 pixels Height - 48 pixels Horizontal Resolution - 96 dpi Vertical Resolution - 96 dpi i tried to use the libpng, to convert the files, in to the dimension , which is converting properly..but could not found the solution. Can u pl. suggest something.. how to display them properly or what API should I use for the conversion. Thanks.

            Vineet Kumar Singhal Sr.Software Engineer Mumbai Tough Time Never last, but Tough People do.

            J Offline
            J Offline
            jk chan
            wrote on last edited by
            #5

            Try using GDI+ , it can load png files.

            If u can Dream... U can do it

            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