CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2023
    Posts
    10

    image process

    Hi,
    need an c/c++ way to change brightness and contrast to a raw grayscale image. BPP=16.
    Last edited by J2Int; July 27th, 2024 at 10:19 PM.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,417

    Re: brightnedd/contrast

    If you can use GDI+ then have a look at MSDN
    Victor Nijegorodov

  3. #3
    Join Date
    Aug 2023
    Posts
    10

    Re: brightnedd/contrast

    this is very helpful. However, when i tried the attributes with passing the color matrix to the DrawImage It did not change the 16 grayscale image.
    i Have 16 bit grayscale buffer to begin with. I convert to to bitmap using the 24bit RGB flag setting all RGB bytes all equally.
    any examples in doing doing that?.
    Is there a formula for changing the brightness and contrast of 16 bit grayscale image?.

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,417

    Re: brightnedd/contrast

    Quote Originally Posted by J2Int View Post
    ...
    Is there a formula for changing the brightness and contrast of 16 bit grayscale image?.
    try to search MDN for that.
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured