Click here to Skip to main content
16,004,969 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUsing span tag Pin
Member 5281554-Jun-04 23:32
Member 5281554-Jun-04 23:32 
GeneralRe: Using span tag Pin
Johan Rosengren5-Jun-04 21:47
Johan Rosengren5-Jun-04 21:47 
GeneralHelp! Navigating to a new page in an ATL Active X control Pin
mcase4-Jun-04 22:46
mcase4-Jun-04 22:46 
GeneralRe: Help! Navigating to a new page in an ATL Active X control Pin
Michael Dunn5-Jun-04 5:35
sitebuilderMichael Dunn5-Jun-04 5:35 
Generalskinmagic skinbuilder problem Pin
kanetheterrible14-Jun-04 21:47
kanetheterrible14-Jun-04 21:47 
General24bit color Bitmap to Grayscale Pin
Anonymous4-Jun-04 21:41
Anonymous4-Jun-04 21:41 
GeneralRe: 24bit color Bitmap to Grayscale Pin
grigsoft4-Jun-04 22:59
grigsoft4-Jun-04 22:59 
GeneralRe: 24bit color Bitmap to Grayscale Pin
cmk5-Jun-04 11:36
cmk5-Jun-04 11:36 
// From www.OpenGL.org - 'Avoiding 16 Common OpenGL Pitfalls' by Mark J. Kilgard
// 'A standard linear weighting for combining red, green, and blue into luminance
// was defined by the National Television Standard Committee (NTSC) when the US
// color television format was standardized. These weightings are based on the
// human eye's sensitivity to different wavelengths of visible light and are
// based on extensive research. To set up OpenGL to convert RGB to luminance
// according to the NTSC standard, you would change OpenGL's default pixel
// transfer state like this:
// glPixelTransferf(GL_RED_SCALE, 0.299);
// glPixelTransferf(GL_GREEN_SCALE, 0.587);
// glPixelTransferf(GL_BLUE_SCALE, 0.114);
//
// From : Postscript Language Ref. Man. 2nd Ed. 6.2.1 pg.304
// '... NTSC viseo standard. This standard determines how a color
// television signal is rendered on a black and white television.'
//
byte b = (byte)(
(R * 0.299) +
(G * 0.587) +
(B * 0.114)
);

e.g.
Given : R = 120, G = 100, B = 200
Grey value = 120*.299 + 100*.587 + 200*.114 = 117.38 (117)
Grey color : R = 117, G = 117, B = 117


...cmk

Save the whales - collect the whole set
GeneralAccessing the CFormview controls Pin
aparajita4-Jun-04 20:57
aparajita4-Jun-04 20:57 
GeneralRe: Accessing the CFormview controls Pin
Johan Rosengren5-Jun-04 21:52
Johan Rosengren5-Jun-04 21:52 
QuestionRe: Accessing the CFormview controls Pin
fermisk30-Mar-09 22:12
fermisk30-Mar-09 22:12 
Generalmake image in one view visible based on input from another view Pin
elephantstar4-Jun-04 20:14
elephantstar4-Jun-04 20:14 
Questionbest way to allocate memory? Pin
nm_1144-Jun-04 19:48
nm_1144-Jun-04 19:48 
AnswerRe: best way to allocate memory? Pin
Johnny ²4-Jun-04 21:21
Johnny ²4-Jun-04 21:21 
AnswerRe: best way to allocate memory? Pin
Gary R. Wheeler5-Jun-04 3:25
Gary R. Wheeler5-Jun-04 3:25 
AnswerRe: best way to allocate memory? Pin
Paul Ranson5-Jun-04 11:27
Paul Ranson5-Jun-04 11:27 
QuestionHow can i Select item from CListCtrl by Mouse selection Pin
Zeeshan Bilal4-Jun-04 19:36
Zeeshan Bilal4-Jun-04 19:36 
AnswerRe: How can i Select item from CListCtrl by Mouse selection Pin
Ravi Bhavnani4-Jun-04 20:33
professionalRavi Bhavnani4-Jun-04 20:33 
QuestionHow can get embedded objects from a powerpoint slide and get its type? Pin
Fasial4-Jun-04 18:57
Fasial4-Jun-04 18:57 
GeneralTab Control Pin
Archer2824-Jun-04 18:19
Archer2824-Jun-04 18:19 
GeneralRe: Tab Control Pin
Ravi Bhavnani4-Jun-04 20:35
professionalRavi Bhavnani4-Jun-04 20:35 
GeneralRe: Tab Control Pin
Archer2825-Jun-04 8:29
Archer2825-Jun-04 8:29 
GeneralRe: Tab Control Pin
Joel Lucsy5-Jun-04 10:19
Joel Lucsy5-Jun-04 10:19 
GeneralRe: Tab Control Pin
Ravi Bhavnani5-Jun-04 10:30
professionalRavi Bhavnani5-Jun-04 10:30 
GeneralInsert Item in Listcontrol/listview using thread. Pin
Sumit Kapoor4-Jun-04 18:14
Sumit Kapoor4-Jun-04 18:14 

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.