Click here to Skip to main content
15,925,133 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
You should be able to

1) Use the octree algorithm to create an optimal palette based on the image pixel values

2) Use the resulting palette and the GetNearestPaletteIndex() API to convert each image
pixel to an index into the palette.

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

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 
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 
JokeRe: Automatic variable Pin
David Crow9-Nov-07 4:10
David Crow9-Nov-07 4:10 
JokeRe: Automatic variable Pin
Matthew Faithfull9-Nov-07 5:02
Matthew Faithfull9-Nov-07 5:02 
AnswerRe: Automatic variable Pin
David Crow9-Nov-07 4:12
David Crow9-Nov-07 4:12 

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.