Click here to Skip to main content
15,921,210 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGetting access to OE inbox Pin
ravjak14-Mar-04 22:09
ravjak14-Mar-04 22:09 
GeneralRe: Getting access to OE inbox Pin
Joel Lucsy15-Mar-04 5:18
Joel Lucsy15-Mar-04 5:18 
GeneralRe: Getting access to OE inbox Pin
ravjak15-Mar-04 10:46
ravjak15-Mar-04 10:46 
GeneralFilter Driver for File Operations Pin
mmica14-Mar-04 21:51
mmica14-Mar-04 21:51 
GeneralRe: Filter Driver for File Operations Pin
Ravi Bhavnani15-Mar-04 4:06
professionalRavi Bhavnani15-Mar-04 4:06 
GeneralDialogBox Pin
asv14-Mar-04 21:25
asv14-Mar-04 21:25 
GeneralRe: DialogBox Pin
Prakash Nadar14-Mar-04 21:36
Prakash Nadar14-Mar-04 21:36 
GeneralTinting a Bitmap Pin
MeterMan14-Mar-04 20:30
MeterMan14-Mar-04 20:30 
First let me explain what I'm hoping to do. I want to generate a program that will load a bitmap from a resource for now. I will worry about loading it from a file later. I want 2 copies of the bitmap to be made. one with a red tint and one with a blue tint. and hide or deload the orginal bitmap. So i would now have a red tinted bitmap and a blue tinted bitmap of the orginal image.
With that being said I think I could do the rest. I want to overly the blue image ontop of the red image with it shifted to the right. This will make a 3d image.

In any event with that being said how do you tint a bitmap. Lets say I have IDB_PICTURE as my bitmap. after doing some research on google i'm lead to believe that i would make a pointer to the bitmap and then simply lower its rgb's. That all sounds fine and dandy but how? I mean i know what a pointer is but how do reset the rgbs with it and let it know its a bitmap and such. I hope my question is clear if not i'll do my best to rephrase it.
A link with good commented code would be great or simply an example of workable code here whichever works would be fine. I just thought it would be cool to make a 3d program.

thanks for the help


Win32newb
"Making windows programs worse than they already are"
GeneralRe: Tinting a Bitmap Pin
Monty214-Mar-04 20:37
Monty214-Mar-04 20:37 
GeneralRe: Tinting a Bitmap Pin
MeterMan14-Mar-04 20:42
MeterMan14-Mar-04 20:42 
GeneralRe: Tinting a Bitmap Pin
Monty214-Mar-04 20:56
Monty214-Mar-04 20:56 
GeneralGaining Exclusive Access over a used volume Pin
mmica14-Mar-04 20:17
mmica14-Mar-04 20:17 
GeneralRe: Gaining Exclusive Access over a used volume Pin
Antti Keskinen14-Mar-04 21:30
Antti Keskinen14-Mar-04 21:30 
GeneralRe: Gaining Exclusive Access over a used volume Pin
mmica14-Mar-04 21:49
mmica14-Mar-04 21:49 
GeneralUsing Bitmasks Pin
monrobot1314-Mar-04 19:14
monrobot1314-Mar-04 19:14 
GeneralRe: Using Bitmasks Pin
Antti Keskinen14-Mar-04 21:47
Antti Keskinen14-Mar-04 21:47 
GeneralModeless Messagebox Pin
Prakash Nadar14-Mar-04 17:50
Prakash Nadar14-Mar-04 17:50 
GeneralRe: Modeless Messagebox Pin
Ravi Bhavnani14-Mar-04 18:00
professionalRavi Bhavnani14-Mar-04 18:00 
GeneralRe: Modeless Messagebox Pin
Prakash Nadar14-Mar-04 18:13
Prakash Nadar14-Mar-04 18:13 
GeneralRe: Modeless Messagebox Pin
Ravi Bhavnani14-Mar-04 18:19
professionalRavi Bhavnani14-Mar-04 18:19 
GeneralRe: Modeless Messagebox Pin
Prakash Nadar14-Mar-04 18:53
Prakash Nadar14-Mar-04 18:53 
GeneralRe: Modeless Messagebox Pin
Neville Franks14-Mar-04 22:19
Neville Franks14-Mar-04 22:19 
GeneralDebug and attach to a process Pin
deyadav14-Mar-04 17:49
deyadav14-Mar-04 17:49 
GeneralRe: Debug and attach to a process Pin
Monty214-Mar-04 18:00
Monty214-Mar-04 18:00 
GeneralRe: Debug and attach to a process Pin
deyadav14-Mar-04 18:09
deyadav14-Mar-04 18:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.