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. Design Question: Only Bitmap or JPEG ?

Design Question: Only Bitmap or JPEG ?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++graphicsdesignhosting
5 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.
  • G Offline
    G Offline
    gabbana
    wrote on last edited by
    #1

    Hello, i am wondering if vc++ also understands jpeg resources or only bitmaps ? It would be very nice if i can use jpegs for design elements. Or another question: how can i build something like this: http://cdn.last.fm/depth/screenshots/de/software_win.jpg[^] (the left bar with the small image and the menue and the light blue bar in the mid (look at "Saalschutz") Thanks for help.

    M N 2 Replies Last reply
    0
    • G gabbana

      Hello, i am wondering if vc++ also understands jpeg resources or only bitmaps ? It would be very nice if i can use jpegs for design elements. Or another question: how can i build something like this: http://cdn.last.fm/depth/screenshots/de/software_win.jpg[^] (the left bar with the small image and the menue and the light blue bar in the mid (look at "Saalschutz") Thanks for help.

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      gabbana wrote:

      i am wondering if vc++ also understands jpeg resources

      GDI's LoadImage() function and GDI+'s Bitmap::FromResource() method both load embedded JPEG BITMAP resources no problem. GIF too. On VS2008: (optional) copy JPEG and/or GIF file to the project's "res" folder Right-click the project's resource (.rc) file in VS resource view Choose "Add Resource" Click "Import..." Find the JPEG and/or GIF files, select them, and click "Open" Save the project and reopen the project's .rc file in the text editor Find the images you've embedded and change the types from "GIF"/"JPG" to "BITMAP" The line(s) should look something like:

      IDB_JPEG1 BITMAP "res\\some.JPG"
      IDB_GIF1 BITMAP "res\\some.GIF"

      Now you can use the above mentioned methods to work with the embedded bitmaps, just like a bmp. An alternative method using IStream/IPicture: Load JPEG and (transparant) GIF picture files from a resource in 3 lines code[^] Loading JPEG and GIF pictures[^] Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      1 Reply Last reply
      0
      • G gabbana

        Hello, i am wondering if vc++ also understands jpeg resources or only bitmaps ? It would be very nice if i can use jpegs for design elements. Or another question: how can i build something like this: http://cdn.last.fm/depth/screenshots/de/software_win.jpg[^] (the left bar with the small image and the menue and the light blue bar in the mid (look at "Saalschutz") Thanks for help.

        N Offline
        N Offline
        Nelek
        wrote on last edited by
        #3

        On the design of the window you can make use of Splitters. About the Saalschutz and the blue background I guess it is a kind of progress bar. You may find a lot of info here in the CP. Take a look into that concepts if they help you.

        Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson Rating helpfull answers is nice, but saying thanks can be even nicer.

        G 1 Reply Last reply
        0
        • N Nelek

          On the design of the window you can make use of Splitters. About the Saalschutz and the blue background I guess it is a kind of progress bar. You may find a lot of info here in the CP. Take a look into that concepts if they help you.

          Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson Rating helpfull answers is nice, but saying thanks can be even nicer.

          G Offline
          G Offline
          gabbana
          wrote on last edited by
          #4

          okay, thanks. do you know a good tutorial for creating a complete own gui with win32 ? So i mean owner drawn windows with my own close buttons and so on ? i tried searching "skins" on cp but i only find apis which are easy to use but complicated to understand in the technic.

          N 1 Reply Last reply
          0
          • G gabbana

            okay, thanks. do you know a good tutorial for creating a complete own gui with win32 ? So i mean owner drawn windows with my own close buttons and so on ? i tried searching "skins" on cp but i only find apis which are easy to use but complicated to understand in the technic.

            N Offline
            N Offline
            Nelek
            wrote on last edited by
            #5

            I am not sure what you are asking for, but actually the VC has lot of functionality and there are a lot of owner draw controls in the CP, the thing is you have to limit the search to what you need API, MFC and so on. If you want to create your own GUI, I recommend you to make different test projects, trying one different thing in each one, and when you get what you want in every of them, then put all together. When you have more questions just ask, there will be many people glad to help you if the question wakes up their curiosity or the question is well formulated. Sorry, but about the manual... there are so many factors involve that I can not give you a concrete answer

            Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson Rating helpfull answers is nice, but saying thanks can be even nicer.

            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