This VisualBasic code takes the targen fractional RGB values but I have no
idea how they're internaly rounded.
'26.3355 15.4468 30.5638
Dim Red, Green, Blue As Single
Red = 26.3355
Green = 15.4468
Blue = 30.5638
PictureBox.BackColor = Color.FromArgb(Red / 100 * 255, Green / 100 * 255,
Blue / 100 * 255)
The compiler won't complain even if the arguments are floating points. Beats
me.
/ Roger
From: argyllcms-bounce@xxxxxxxxxxxxx [mailto:argyllcms-bounce@xxxxxxxxxxxxx]
On Behalf Of Roger Breton
Sent: 9 juin 2016 12:47
To: argyllcms@xxxxxxxxxxxxx
Subject: [argyllcms] 8-bit video cards
I'm looking at the RGB device values generated by targen :
BEGIN_DATA
1 100.000 100.000 100.000
2 26.3355 15.4468 30.5638
3 38.0192 31.0052 31.3191
4 67.1452 32.5460 70.2273
5 43.5580 19.2815 41.2501
6 56.3311 30.6693 55.5987
7 70.5472 34.7582 59.1016
Those are not defined on a 0-255 8-bit scale but a 0-100 scale.
It's trivial to map 100 to 255 but what about all those fractional values,
they don't map to straight 8-bit integers, do they?
I confess I am puzzled since I don't know how I could specify RGB values for
display under this OS other than through integer RGB values.
I guess dispread rounds to the nearest integer value on the way to the video
card or is there other subtleties I'm missing?
This is not meant as a criticism by no means but a simple observation.
/ Roger Breton