English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 17 May 2014, 17:23   #1
aszu
Registered User
 
aszu's Avatar
 
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
aszu is offline  
Old 17 May 2014, 18:13   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,001
The palette has the right format for use with LoadRGB32.
thomas is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 14:58.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09368 seconds with 13 queries