🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.graphics
Article #52

Re: Palette and backgrounds problems using BC++ 4.0

#52
From: John Beardmore
Date: Mon, 19 Jun 1995 00:00
24 lines
2136 bytes
In article <3r5qil$dd4_003@ldh.interlog.com>
           ldh@interlog.com "Laurent-David HASSON" writes:

> - Palette management.
>
>   When i add a bitmap to the "canvas", the first one works fine, but the 
>following ones cause the palette to change... I tried to not change the 
>palette after the first image has been put on the canvas, but then, all the 
>folowing images come in weird colors... Is there a way to have a common 
>palette? Should i "play" with palettes and make an average palette, 
>depending on the individual bitmaps i want to assemble? How should i go 
>about it? 
>   I am sure that what i want is feasible since many programs, including MS 
>PowerPoint, allow the user to assemble images from different sources, like 
>metafiles, bmp etc... and the colors don't die in the way.

There has been some disussion here of an algorithm called "median cut"
for picking the best palette. I don't know any details however.

-- 
John Beardmore     wookie@wookie.demon.co.uk
                   wookie@cix.compulink.co.uk

Windows '95:  95% the same old DOS and windows...
Technical Details
Message-ID: <803523677snz@wookie.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3r5qil$dd4_003@ldh.interlog.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fbde8,84b1ef83764e4e53
X-Google-Attributes: gidfbde8,public
X-Google-Thread: 1120e8,84b1ef83764e4e53
X-Google-Attributes: gid1120e8,public
X-Google-Thread: 124e6c,84b1ef83764e4e53
X-Google-Attributes: gid124e6c,public
X-Google-Thread: 105df1,84b1ef83764e4e53
X-Google-Attributes: gid105df1,public
X-Google-Thread: 101278,84b1ef83764e4e53
X-Google-Attributes: gid101278,public
From: John Beardmore <wookie@wookie.demon.co.uk>
Subject: Re: Palette and backgrounds problems using BC++ 4.0
Date: 1995/06/19
Message-ID: <803523677snz@wookie.demon.co.uk>
X-Deja-AN: 104601938
distribution: world
sender: news@news.demon.co.uk
references: <3r5qil$dd4_003@ldh.interlog.com>
x-posting-host: wookie.demon.co.uk
organization: at home and work.
reply-to: wookie@wookie.demon.co.uk
newsgroups: comp.os.ms-windows.programmer.graphics,fr.comp.windows.divers,comp.os.ms-windows.programmer.misc,alt.binaries.pictures.utilities,comp.os.ms-windows.apps.utilities