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 / C++ / MFC
  4. Bitmap problem

Bitmap problem

Scheduled Pinned Locked Moved C / C++ / MFC
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.
  • S Offline
    S Offline
    srija
    wrote on last edited by
    #1

    Hello, I would like to know, how could i restore the each and every pixel value of a picture in an edit box? unsigned char value; CString m_strbpp; for(i=1;i<100;i=i+1) for(j=1;j<100;j=j+1) { value=B.GetPixel32(i,j); m_strbpp.Format("%d",value); }

    H 1 Reply Last reply
    0
    • S srija

      Hello, I would like to know, how could i restore the each and every pixel value of a picture in an edit box? unsigned char value; CString m_strbpp; for(i=1;i<100;i=i+1) for(j=1;j<100;j=j+1) { value=B.GetPixel32(i,j); m_strbpp.Format("%d",value); }

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      COLORREF colorref; BYTE r,g,b; for(int i=0;i<20;i++) for(int j=0;j<20;j++) { colorref=GetPixel(hdc,i,j); r=GetRValue(colorref); g=GetGValue(colorref); b=GetBValue(colorref); CString str; str.Format("r=%d,g=%d,b=%d",r,g,b); m_Edit.SetWindowText(str); }

      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