17 May 2014, 17:23 | #1 |
Registered User
Join Date: Mar 2014
Location: Leeds
Posts: 141
|
Personal Paint's Color Palette in C
Hi,
I have saved a picture as C source in PPaint, but I don't know how to set the palette. I wanted to use the SetRGB4 function, but the saved palette is in form of separate colors in format, for example, 0x0100, 0x0210, and so on. How do I convert the colors to r,g,b, required by SetRGB4 or maybe there is easier way to do it, please? Regards |
17 May 2014, 18:13 | #2 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,001
|
The palette has the right format for use with LoadRGB32.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Color Saturation and Color Tint/Hue | Retro-Nerd | support.WinUAE | 22 | 02 August 2018 10:38 |
Personal Paint (PPaint) help! (resize or trimming) | nittamituaki | support.Apps | 1 | 05 May 2014 07:03 |
Personal Paint "buggy" | DougHallstead | support.WinUAE | 5 | 13 June 2013 06:53 |
How to switch screen modes in Personal Paint? | palaste | support.Apps | 1 | 03 November 2011 21:21 |
ISO true color to 256 color algorithm | Lord Riton | Coders. General | 19 | 15 April 2011 17:49 |
|
|