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. graphics program

graphics program

Scheduled Pinned Locked Moved C / C++ / MFC
c++htmlcomgraphicstutorial
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.
  • S Offline
    S Offline
    Sai Yasodharan
    wrote on last edited by
    #1

    hi, someone tell me how to create graphics program on vc++. give me some sample program also. thanks in advance

    Known is a Drop, UnKnown is an Ocean More about me at http://in.geocities.com/slagio2002/me.html

    N H 2 Replies Last reply
    0
    • S Sai Yasodharan

      hi, someone tell me how to create graphics program on vc++. give me some sample program also. thanks in advance

      Known is a Drop, UnKnown is an Ocean More about me at http://in.geocities.com/slagio2002/me.html

      N Offline
      N Offline
      nbugalia
      wrote on last edited by
      #2

      Sai Yasodharan wrote:

      to create graphics program on vc++.

      What do u mean by "Graphics". In windows, every program (except console) is graphics program. Plz explain a bit more.

      S 1 Reply Last reply
      0
      • S Sai Yasodharan

        hi, someone tell me how to create graphics program on vc++. give me some sample program also. thanks in advance

        Known is a Drop, UnKnown is an Ocean More about me at http://in.geocities.com/slagio2002/me.html

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

        Can you more exaplain about your question "create graphics program "

        1 Reply Last reply
        0
        • N nbugalia

          Sai Yasodharan wrote:

          to create graphics program on vc++.

          What do u mean by "Graphics". In windows, every program (except console) is graphics program. Plz explain a bit more.

          S Offline
          S Offline
          Sai Yasodharan
          wrote on last edited by
          #4

          to develop a console program to draw lines, circles, etc.,

          Known is a Drop, UnKnown is an Ocean More about me at http://in.geocities.com/slagio2002/me.html

          B 1 Reply Last reply
          0
          • S Sai Yasodharan

            to develop a console program to draw lines, circles, etc.,

            Known is a Drop, UnKnown is an Ocean More about me at http://in.geocities.com/slagio2002/me.html

            B Offline
            B Offline
            bob16972
            wrote on last edited by
            #5

            a console application can only achieve graphics in the most rudimentary way. Historically, in the DOS days, most of us resorted to using the upper OEM character set or drawing very crude primitives like circles and images by arranging characters in the 80x25 character matrix so they resembled something. It was hardly adequate and mostly wasteful except for the user interfaces that were early examples of the modern day user interface, particularly menus, scrollbars, and dialogs. Products as Turbo C++ and tools like "edit" were examples of good utilizations of these "graphics" techniques. If you are in search of how to create a graphics application using C++/MFC then I would recommend starting a new doc/view application in Visual C++ and deriving the view class from CView or CScrollView and experimenting with placing some drawing primitives like line, circles, and rectangles in the CYourDerivedView::OnDraw() method. In MSDN, look up "MoveTo" and "LineTo" for lines, "Rectangle" for a basic rectangle, and "Ellipse" for ellipses and circles. After you see how these work, you will want to research "Mapping Modes" for scaling, Pens and Brushes to get different drawing effects, then move on to text by looking up "DrawText". Hope that helps get you started.

            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