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. Cuting out a part of a bitmap

Cuting out a part of a bitmap

Scheduled Pinned Locked Moved C#
graphicshelp
4 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.
  • Y Offline
    Y Offline
    Ylis
    wrote on last edited by
    #1

    I have looked through the System.Drawing namespace in search for a method that takes a part of a bitmap. But I can't seem to find any. Grateful for any help offered

    J 1 Reply Last reply
    0
    • Y Ylis

      I have looked through the System.Drawing namespace in search for a method that takes a part of a bitmap. But I can't seem to find any. Grateful for any help offered

      J Offline
      J Offline
      J Dunlap
      wrote on last edited by
      #2
      1. Create a new bitmap the size of the area you want to cut out 2) Make a Graphics for that bitmap 3) Use DrawImage to draw the image at the correct location

      "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
      "You must be the change you wish to see in the world." - Mahatma Gandhi

      I 1 Reply Last reply
      0
      • J J Dunlap
        1. Create a new bitmap the size of the area you want to cut out 2) Make a Graphics for that bitmap 3) Use DrawImage to draw the image at the correct location

        "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
        "You must be the change you wish to see in the world." - Mahatma Gandhi

        I Offline
        I Offline
        Ista
        wrote on last edited by
        #3

        Actually I personally think it would be faster to use the close method and let the CLR amanage creating the new image for yoiu which would be inherently faster. Although I'm a direct3D programmer so the speed would only be noticed by me. nick I'm not an expert yet, but I play one at work. Yeah and here too.

        Y 1 Reply Last reply
        0
        • I Ista

          Actually I personally think it would be faster to use the close method and let the CLR amanage creating the new image for yoiu which would be inherently faster. Although I'm a direct3D programmer so the speed would only be noticed by me. nick I'm not an expert yet, but I play one at work. Yeah and here too.

          Y Offline
          Y Offline
          Ylis
          wrote on last edited by
          #4

          oki, thx :)

          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