Thread: Need help

Results 1 to 5 of 5
  1. #1
    T.Vader's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    24
    Reputation
    10
    Thanks
    1

    Exclamation Need help

    Guys any hints , how to make bmp color changer program in win32 console . For example run console and it will change bmp file's pixels

  2. #2
    atom0s's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    403
    Reputation
    139
    Thanks
    104
    • Load the bitmap of your choice into memory one way or another.
    • Use GetObject on the memory to convert to a BITMAP object.
    • Use CreateCompatibleDC with GetDIBits to obtain the BITMAPINFO data of the bitmap.


    Once you have done that you'll have access to the bitmaps pixel data from GetDIBits. The BITMAPINFO struct should be filled out properly with the bitmap information before calling GetDIBits with it or you will land up crashing due to access violations and such.

    Be sure to cleanup the handles/objects you create as well.
    - Gone; this is another shit forum with children as administrators. Not worth contributing to.

  3. #3
    T.Vader's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    24
    Reputation
    10
    Thanks
    1
    what about linux ?

  4. #4
    atom0s's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    403
    Reputation
    139
    Thanks
    104
    No idea I don't code for portability. Plus you said 'win32' in your main post so figured you wanted Windows specific stuff.
    - Gone; this is another shit forum with children as administrators. Not worth contributing to.

  5. #5
    T.Vader's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    24
    Reputation
    10
    Thanks
    1
    thx anyway for information

Similar Threads

  1. [Help Request] Need Help
    By shane11 in forum CrossFire Help
    Replies: 49
    Last Post: 05-03-2011, 04:29 AM
  2. [Help Request] Need help finding a Vindictus injector
    By VpChris in forum Vindictus Help
    Replies: 2
    Last Post: 05-01-2011, 10:51 PM
  3. [Help Request] need help with mod
    By .:MUS1CFR34K:. in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 4
    Last Post: 05-01-2011, 12:40 PM
  4. [Help Request] I need help~~!!!!
    By c834606877 in forum Alliance of Valiant Arms (AVA) Help
    Replies: 1
    Last Post: 05-01-2011, 01:12 AM
  5. [Help Request] need help with modding
    By BayBee Alyn in forum Combat Arms Help
    Replies: 0
    Last Post: 04-27-2011, 09:06 PM