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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Resize of image

Resize of image

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
6 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.
  • K Offline
    K Offline
    kumar_mk
    wrote on last edited by
    #1

    I have a picture control(static control) on my dialog box. then iam browsing for an image(any type like jpeg,bmp..) by using a browse button on my dialog box and i want to display the selected image in the picture control. the image should be fit in the control. Please do explain with example? Thanks in advance, Regards Kumar_Windows

    L T H 3 Replies Last reply
    0
    • K kumar_mk

      I have a picture control(static control) on my dialog box. then iam browsing for an image(any type like jpeg,bmp..) by using a browse button on my dialog box and i want to display the selected image in the picture control. the image should be fit in the control. Please do explain with example? Thanks in advance, Regards Kumar_Windows

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      http://msdn.microsoft.com/msdnmag/issues/01/10/c/[^]

      "What classes are you using ? You shouldn't call stuff if you have no idea what it does"
      Christian Graus in the C# forum

      led mike

      1 Reply Last reply
      0
      • K kumar_mk

        I have a picture control(static control) on my dialog box. then iam browsing for an image(any type like jpeg,bmp..) by using a browse button on my dialog box and i want to display the selected image in the picture control. the image should be fit in the control. Please do explain with example? Thanks in advance, Regards Kumar_Windows

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        kumar_windows wrote:

        hen iam browsing for an image(any type like jpeg,bmp..) by using a browse button on my dialog box and i want to display the selected image in the picture control. the image should be fit in the control.

        could you tell me Which Interface or Api are you using to Display JPG,PNG format in PictureControl, as pictureControl only understand Bitmaps

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta VC Forum Q&A :- I/ IV

        H 1 Reply Last reply
        0
        • T ThatsAlok

          kumar_windows wrote:

          hen iam browsing for an image(any type like jpeg,bmp..) by using a browse button on my dialog box and i want to display the selected image in the picture control. the image should be fit in the control.

          could you tell me Which Interface or Api are you using to Display JPG,PNG format in PictureControl, as pictureControl only understand Bitmaps

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta VC Forum Q&A :- I/ IV

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

          i think he need to convert jpeg or png to bmp for use in static control_**


          **_

          whitesky


          T 1 Reply Last reply
          0
          • H Hamid Taebi

            i think he need to convert jpeg or png to bmp for use in static control_**


            **_

            whitesky


            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            WhiteSky wrote:

            i think he need to convert jpeg or png to bmp for use in static control

            But he ask for something else, he want to resize the image, so i believe he must be using some interface or class from which he is reading such format!

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta VC Forum Q&A :- I/ IV

            1 Reply Last reply
            0
            • K kumar_mk

              I have a picture control(static control) on my dialog box. then iam browsing for an image(any type like jpeg,bmp..) by using a browse button on my dialog box and i want to display the selected image in the picture control. the image should be fit in the control. Please do explain with example? Thanks in advance, Regards Kumar_Windows

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

              you can use from CImage or OleLoadPicture for read your graphic file and convert it to bitmap for use in static control_**


              **_

              whitesky


              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