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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. pls help

pls help

Scheduled Pinned Locked Moved .NET (Core and Framework)
graphicshelpquestion
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.
  • U Offline
    U Offline
    Umangj
    wrote on last edited by
    #1

    Heyy, I want to alter an image. jus need to change color of some pixels in an image. What i m doing is this: FileStream f = new FileStream("d:\\puzzlesolver\\puzzle\\piece" + i.ToString() + ".jpg", FileMode.Open, FileAccess.ReadWrite); Bitmap bmp = new Bitmap(f); f.Close(); bmp.SetPixel(n, j, Color.IndianRed); [note]: n,j are within the cordinates of the image. but after running the code successfully m not able to change the color of the pixels...What am i doing wrong here?? pls help....

    D 1 Reply Last reply
    0
    • U Umangj

      Heyy, I want to alter an image. jus need to change color of some pixels in an image. What i m doing is this: FileStream f = new FileStream("d:\\puzzlesolver\\puzzle\\piece" + i.ToString() + ".jpg", FileMode.Open, FileAccess.ReadWrite); Bitmap bmp = new Bitmap(f); f.Close(); bmp.SetPixel(n, j, Color.IndianRed); [note]: n,j are within the cordinates of the image. but after running the code successfully m not able to change the color of the pixels...What am i doing wrong here?? pls help....

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      There's nothing obviously wrong with the code. How are you determining that the pixels don't get set??

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      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