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. Image

Image

Scheduled Pinned Locked Moved C#
questioncareer
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.
  • G Offline
    G Offline
    Gary Kirkham
    wrote on last edited by
    #1

    I am reading a graphic into an image (Image class) and displaying it on a form. Among other things, I am providing methods for moving the image around on the screen using the mouse. When the user clicks on the image I would like to shade the image (tint?) so that the user knows the image is selected. Similar to (or exactly like) like an icon changes color when the user selects one on the desktop. Any ideas about the best way to do that? Gary Kirkham A working Program is one that has only unobserved bugs I thought I wanted a career, turns out I just wanted paychecks

    B 1 Reply Last reply
    0
    • G Gary Kirkham

      I am reading a graphic into an image (Image class) and displaying it on a form. Among other things, I am providing methods for moving the image around on the screen using the mouse. When the user clicks on the image I would like to shade the image (tint?) so that the user knows the image is selected. Similar to (or exactly like) like an icon changes color when the user selects one on the desktop. Any ideas about the best way to do that? Gary Kirkham A working Program is one that has only unobserved bugs I thought I wanted a career, turns out I just wanted paychecks

      B Offline
      B Offline
      Blake Coverett
      wrote on last edited by
      #2

      graphics.FillRectangle(new SolidBrush(Color.FromArgb(80 ,SystemColors.Highlight)), imageRect); graphics.DrawRectangle(SystemPens.Highlight, imageRect); -Blake

      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