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. Drawing in GDI

Drawing in GDI

Scheduled Pinned Locked Moved C#
graphicsquestioncsharpbusinesshelp
2 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.
  • S Offline
    S Offline
    snouto
    wrote on last edited by
    #1

    How you are everybody ? we are developing a business process like diagram . i am responsible for designing the GUI of the activities on the white board i have decided to make each activity like a user control . but the problem now , i need the user control to be clipped only to the shape of the image (the image of the activity itself) i need the whole user control on dropping it over the whiteboard to take only the shape of the image itself . how can i do that in C# Graphics , do you have any sample code or anything for the above task ? it will be greatly appreciated . Thanks everyone

    Human knowledge belongs to the world.

    D 1 Reply Last reply
    0
    • S snouto

      How you are everybody ? we are developing a business process like diagram . i am responsible for designing the GUI of the activities on the white board i have decided to make each activity like a user control . but the problem now , i need the user control to be clipped only to the shape of the image (the image of the activity itself) i need the whole user control on dropping it over the whiteboard to take only the shape of the image itself . how can i do that in C# Graphics , do you have any sample code or anything for the above task ? it will be greatly appreciated . Thanks everyone

      Human knowledge belongs to the world.

      D Offline
      D Offline
      Dan Mos
      wrote on last edited by
      #2

      maybe this will help. I know it shapes a hole winform but the same principle should apply to a custom/user control. It describe how to shape a form based on a bitmap, graphic path and more. Also this could help.

      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