Click here to Skip to main content
15,913,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get the icon size and coordinate on the status area Pin
guojing19824239-Nov-07 2:23
guojing19824239-Nov-07 2:23 
AnswerRe: How to get the icon size and coordinate on the status area Pin
David Crow9-Nov-07 4:52
David Crow9-Nov-07 4:52 
AnswerRe: How to get the icon size and coordinate on the status area Pin
Hamid_RT9-Nov-07 20:08
Hamid_RT9-Nov-07 20:08 
Questionquestion on reduce the number of colors Pin
King Tran9-Nov-07 0:53
King Tran9-Nov-07 0:53 
GeneralRe: question on reduce the number of colors Pin
Matthew Faithfull9-Nov-07 4:58
Matthew Faithfull9-Nov-07 4:58 
AnswerRe: question on reduce the number of colors Pin
Mark Salsbery9-Nov-07 5:54
Mark Salsbery9-Nov-07 5:54 
GeneralRe: question on reduce the number of colors Pin
King Tran9-Nov-07 19:47
King Tran9-Nov-07 19:47 
GeneralRe: question on reduce the number of colors Pin
Mark Salsbery10-Nov-07 5:34
Mark Salsbery10-Nov-07 5:34 
Lao Wang wrote:
i want to know the algorithm of converting rgb pixel to palette index based on the optimal palette


The GetNearestPaletteIndex() API does that but I'm not sure what algorithm it uses.

I don't have algorithms to share but a quick Google search gives some ideas like:

3-D Lookup Table Color Matching[^]
quick Color Averaging[^]

Mark




Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: question on reduce the number of colors Pin
King Tran11-Nov-07 1:36
King Tran11-Nov-07 1:36 
QuestionMFC Property sheet with owner drawn button become very flickering Pin
xanagan6669-Nov-07 0:00
xanagan6669-Nov-07 0:00 
AnswerRe: MFC Property sheet with owner drawn button become very flickering Pin
Nelek9-Nov-07 0:35
protectorNelek9-Nov-07 0:35 
QuestionIntegrating a Library into a VC++ Project Pin
bigdenny2008-Nov-07 22:22
bigdenny2008-Nov-07 22:22 
AnswerRe: Integrating a Library into a VC++ Project Pin
Nelek8-Nov-07 22:30
protectorNelek8-Nov-07 22:30 
GeneralRe: Integrating a Library into a VC++ Project Pin
bigdenny2008-Nov-07 22:42
bigdenny2008-Nov-07 22:42 
AnswerRe: Integrating a Library into a VC++ Project Pin
Cedric Moonen8-Nov-07 22:31
Cedric Moonen8-Nov-07 22:31 
GeneralRe: Integrating a Library into a VC++ Project Pin
bigdenny2008-Nov-07 22:42
bigdenny2008-Nov-07 22:42 
QuestionAutomatic variable Pin
George_George8-Nov-07 22:07
George_George8-Nov-07 22:07 
AnswerRe: Automatic variable Pin
Rajasekharan Vengalil8-Nov-07 23:25
Rajasekharan Vengalil8-Nov-07 23:25 
GeneralRe: Automatic variable Pin
George_George9-Nov-07 2:35
George_George9-Nov-07 2:35 
GeneralRe: Automatic variable Pin
Rajasekharan Vengalil9-Nov-07 4:41
Rajasekharan Vengalil9-Nov-07 4:41 
GeneralRe: Automatic variable Pin
George_George9-Nov-07 21:18
George_George9-Nov-07 21:18 
GeneralRe: Automatic variable Pin
super_ttd16-Nov-07 6:13
super_ttd16-Nov-07 6:13 
AnswerRe: Automatic variable Pin
toxcct9-Nov-07 2:23
toxcct9-Nov-07 2:23 
GeneralRe: Automatic variable Pin
George_George9-Nov-07 2:34
George_George9-Nov-07 2:34 
GeneralRe: Automatic variable Pin
toxcct9-Nov-07 2:35
toxcct9-Nov-07 2:35 

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.