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. Lighten area of a image

Lighten area of a image

Scheduled Pinned Locked Moved C#
graphicstutorial
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.
  • H Offline
    H Offline
    hardsoft
    wrote on last edited by
    #1

    I have a app which places a watermark (text) on an image and saves this back to a file. What I would like to do is lighten a rectangle area behind the text so the text is clearer. Can anyone point me to articles which would show how to lighten an area. I found many which show how to lighten/darken the image (bitmap) but noe for an area.

    C C 2 Replies Last reply
    0
    • H hardsoft

      I have a app which places a watermark (text) on an image and saves this back to a file. What I would like to do is lighten a rectangle area behind the text so the text is clearer. Can anyone point me to articles which would show how to lighten an area. I found many which show how to lighten/darken the image (bitmap) but noe for an area.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      My image processing articles show you how to do that, you'd just have to change the code to only iterate over the pixels you want to lighten

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      1 Reply Last reply
      0
      • H hardsoft

        I have a app which places a watermark (text) on an image and saves this back to a file. What I would like to do is lighten a rectangle area behind the text so the text is clearer. Can anyone point me to articles which would show how to lighten an area. I found many which show how to lighten/darken the image (bitmap) but noe for an area.

        C Offline
        C Offline
        carlecomm
        wrote on last edited by
        #3
        1. you can lighten text , so the text is clearer. 2) you can make two pictures (one is lighten, the other is darken) when mouse over the places , just change the pictures. 3) of course, you can draw a picture, by different way.(Pixel Zoom, different background color.....)
        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