Solved

How to get 256 color palette from System ?

Posted on 1998-08-26
1
397 Views
Last Modified: 2013-11-19
How to Get 256 color palette from system ?
I've use Getsystempalette, but get only 20 color.
then ResizePalette only resize the palette size
but fill the remain 236 with RGB(0,0,0)
Would you help me ? Thank you very much.
0
Comment
Question by:happy050597
1 Comment
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
ID: 1321339
The trick is to use the PC_EXPLICIT flag. Check out the Win32 sample "Mypal: Palette Management Example".
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now