🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14791

Pixelgrabber negative pixel values

#14791
From: P.Banoub
Date: Mon, 02 Aug 1999 00:00
17 lines
998 bytes
Hi.

I'm analysing an image with pixel grabber and extracting RGB values from
it.
Pixelgrabber returns a value for the whole pixel that represents the
colour.
eg. White = -1
    Cyan = -16711681

I can extract RGB valuse FROM this negative number but I dont know how
to calculate this number from giveb RGB values.

eg. R = 100 G=100 & B = 100
How do I calculate the negative pixel colour?

Any help greatly appreciated.
Paul
Technical Details
Message-ID: <37A5E5B4.E7710B22@virgin.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,a2a26c7906295ab,start
X-Google-Attributes: gidf74b3,public
From: "P.Banoub" <paul.banoub@virgin.net>
Subject: Pixelgrabber negative pixel values
Date: 1999/08/02
Message-ID: <37A5E5B4.E7710B22@virgin.net>
X-Deja-AN: 508045442
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Reply-To: paul.banoub@virgin.net
Newsgroups: borland.public.jbuilder.java.language