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. Graphics issue

Graphics issue

Scheduled Pinned Locked Moved C#
graphicsadobehelptutorialquestion
3 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.
  • D Offline
    D Offline
    Dobromir Dimitrov
    wrote on last edited by
    #1

    Hi. I am developing a graphics intensive application where I need to save a certain state of the grapfics object in an Image (much like when you save someting you have drawn in PhotoShop for example). Does anyone know how I can do that?

    G B 2 Replies Last reply
    0
    • D Dobromir Dimitrov

      Hi. I am developing a graphics intensive application where I need to save a certain state of the grapfics object in an Image (much like when you save someting you have drawn in PhotoShop for example). Does anyone know how I can do that?

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      A Graphics object does not have any state that you can save as an image. A Graphics object is only used for the drawing, it does not contain the graphics.

      --- It's amazing to see how much work some people will go through just to avoid a little bit of work.

      1 Reply Last reply
      0
      • D Dobromir Dimitrov

        Hi. I am developing a graphics intensive application where I need to save a certain state of the grapfics object in an Image (much like when you save someting you have drawn in PhotoShop for example). Does anyone know how I can do that?

        B Offline
        B Offline
        Bekjong
        wrote on last edited by
        #3

        Use GetGraphics from the control of which you want save the content, then use the DrawImage method on the graphic context this gets you to draw the content to an image.

        __________________________________________________ Standards are great! Everybody should have one!

        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