Click here to Skip to main content
15,893,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: COleDateTime Pin
1-Jul-01 21:35
suss1-Jul-01 21:35 
GeneralRe: COleDateTime Pin
Gérald Mercet1-Jul-01 21:38
Gérald Mercet1-Jul-01 21:38 
GeneralRe: COleDateTime Pin
Bret Faller2-Jul-01 6:43
Bret Faller2-Jul-01 6:43 
GeneralCOleDateTime Pin
Gérald Mercet29-Jun-01 3:57
Gérald Mercet29-Jun-01 3:57 
Generalcreating controls on the desktop?!! Pin
28-Jun-01 20:03
suss28-Jun-01 20:03 
GeneralRe: creating controls on the desktop?!! Pin
Drake Elsari29-Jun-01 4:40
Drake Elsari29-Jun-01 4:40 
GeneralImage Operations Pin
Tran Hoang Chuong28-Jun-01 18:43
Tran Hoang Chuong28-Jun-01 18:43 
GeneralRe: Image Operations Pin
Christian Graus28-Jun-01 19:03
protectorChristian Graus28-Jun-01 19:03 
To do this you need direct pixel access, which I assume your class has, i.e. I assume your DIB is a CDIBSection.

Brightness is easy, just add an amount to each of the RGB values for each pixel. Contrast involves trending high values up and low values down. What does colorise mean ?

The pointer to the pixel data is passed into the call that creates the DIBSection. If you want more info on different filters, I'd be happy to dig up something. If you're remotely serious you should buy Windows Graphics Programming by Feng Yuan, which contains heaps of info on filters ( it's where I initially learned about them ). There are also some newsgroups worth reading.



Christian

#include "std_disclaimer.h"

People who love sausage and respect the law should never watch either one being made.

The things that come to those who wait are usually the things left by those who got there first.

GeneralRe: Image Operations Pin
Tran Hoang Chuong28-Jun-01 19:37
Tran Hoang Chuong28-Jun-01 19:37 
GeneralRe: Image Operations Pin
Christian Graus28-Jun-01 19:42
protectorChristian Graus28-Jun-01 19:42 
GeneralRe: Image Operations Pin
Tran Hoang Chuong28-Jun-01 19:47
Tran Hoang Chuong28-Jun-01 19:47 
GeneralRe: Image Operations Pin
Christian Graus28-Jun-01 19:56
protectorChristian Graus28-Jun-01 19:56 
GeneralRe: Image Operations Pin
Tran Hoang Chuong28-Jun-01 20:07
Tran Hoang Chuong28-Jun-01 20:07 
GeneralRe: Image Operations Pin
Christian Graus28-Jun-01 20:08
protectorChristian Graus28-Jun-01 20:08 
GeneralRich Text Pin
Steven Armstrong28-Jun-01 16:52
Steven Armstrong28-Jun-01 16:52 
GeneralSerializing Bitmaps Pin
mr200328-Jun-01 16:16
mr200328-Jun-01 16:16 
GeneralHard coded path names Pin
Alex Griffing28-Jun-01 15:56
Alex Griffing28-Jun-01 15:56 
GeneralRe: Hard coded path names Pin
28-Jun-01 18:08
suss28-Jun-01 18:08 
GeneralRe: Hard coded path names Pin
#realJSOP29-Jun-01 3:52
mve#realJSOP29-Jun-01 3:52 
QuestionHow do I implement serialization from my Cview class Pin
mr200328-Jun-01 14:45
mr200328-Jun-01 14:45 
QuestionHow do I activate the view my mouse goes over in an MDI app ? Pin
Christian Graus28-Jun-01 14:26
protectorChristian Graus28-Jun-01 14:26 
AnswerRe: How do I activate the view my mouse goes over in an MDI app ? Pin
#realJSOP29-Jun-01 4:09
mve#realJSOP29-Jun-01 4:09 
GeneralRe: How do I activate the view my mouse goes over in an MDI app ? Pin
Christian Graus29-Jun-01 21:04
protectorChristian Graus29-Jun-01 21:04 
GeneralRe: How do I activate the view my mouse goes over in an MDI app ? Pin
Neville Franks29-Jun-01 22:06
Neville Franks29-Jun-01 22:06 
GeneralRe: How do I activate the view my mouse goes over in an MDI app ? Pin
Christian Graus30-Jun-01 0:32
protectorChristian Graus30-Jun-01 0:32 

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.