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 Clipping in C#.net

Graphics Clipping in C#.net

Scheduled Pinned Locked Moved C#
csharpgraphicshelpquestion
4 Posts 2 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.
  • F Offline
    F Offline
    free_soul424
    wrote on last edited by
    #1

    Hi, I want to clip a specific portion of the bitmap, and want to display that clip at certain point on the form. Can any one help me? I am looking for a c#.net solution. Thank you

    S 1 Reply Last reply
    0
    • F free_soul424

      Hi, I want to clip a specific portion of the bitmap, and want to display that clip at certain point on the form. Can any one help me? I am looking for a c#.net solution. Thank you

      S Offline
      S Offline
      samreengr8
      wrote on last edited by
      #2

      Save the image in a buffer and then selecting the particular part using scan and bmdata u can make a region of the required portion then paint that region on the form...... Im doing the same type of thing just a rough idea abt it..... Im also searching out abt it........ Update it if u get the problem solve BEST OF LUCK

      F 1 Reply Last reply
      0
      • S samreengr8

        Save the image in a buffer and then selecting the particular part using scan and bmdata u can make a region of the required portion then paint that region on the form...... Im doing the same type of thing just a rough idea abt it..... Im also searching out abt it........ Update it if u get the problem solve BEST OF LUCK

        F Offline
        F Offline
        free_soul424
        wrote on last edited by
        #3

        Hi, Did try Clipping in c#.net library as Graphics g= CreateGraphics(); Rectangle clip_rect=new Rectangle(0,0,100,100); g.Clip=new Region(clip_rect); it can work?

        S 1 Reply Last reply
        0
        • F free_soul424

          Hi, Did try Clipping in c#.net library as Graphics g= CreateGraphics(); Rectangle clip_rect=new Rectangle(0,0,100,100); g.Clip=new Region(clip_rect); it can work?

          S Offline
          S Offline
          samreengr8
          wrote on last edited by
          #4

          No I dont think soo!!!!! It can only clip the image to be drawn in a particular rectangle but u cant select a particular portion in the image for doin soo u have to select pixels frm the image...using Bitmapdata and locking the bitmap.......Ya do read christian Gauss image processing articles U ll get to know lot abt image processing.... BEST OF LUCK

          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