Re: [JAVA2D] HSB values explained

2002-08-01 Thread Jim Graham

Hi Jan,

> Does anybody know any resources where these systems are explained
> (preferably with some conversion algorithms)?

Foley and Van Dam's "Computer Graphics: Principles and Practice"
describes a lot of the terms and protocols we use in the 2D API.
In particular, they define the HSV (aka HSB) conversion algorithm
that we use under the name HSB.  HSV stands for Hue, Saturation,
and Value and HSB stands for Hue, Saturation, and Brightness.
Value and Brightness are the same measurement, but Brightness is
a more colloquial term for it.

> Red = 128, Green = 80, Blue = 64
> Java-HSB: 0.41667, 0.5, 0.50196
> PSP-HSB: 11, 85, 96

If you look in the Foley and vanDam reference there is another
algorithm described there called HLS which stands for Hue, Lightness
and Saturation.  That algorithm produces numbers nearly identical
to the PSP's numbers except in a different order (PSP looks like it
is returning H, S, L in that order) and with a different scale
for the Hue (FvD use 0-360 whereas PSP seems to use 0-255).

HSV/HSB produce values in a space that is a single "cone" with a
hexagon at its top and a point at its bottom.  Any color that
has at least 1 RGB parameter of 255 will be mapped onto the
hexagon face of that "cone" with white in the center and pure
colors (R,G,B,Y,M,C) at the vertices of the hexagon.  Black is
at the point at the bottom.

HLS produces values that map into two such cones stuck together
at their hexagon bases.  White is the point at the top.  Black is
the point at the bottom.  Pure colors are at the vertices of the
hexagon in the middle.

FvD gives better descriptions of the why and wherefores of the
two algorithms as well as pretty pictures of the cones they map
into.

Does that help?

...jim

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Re: [JAVA2D] launching a browser

2002-08-01 Thread Mona Wong-Barnum

Hi Ed:

Checkout http://browserlauncher.sourceforge.net/.  We use it and it
works very well for us doing what you asked form.

> Hi All
>
> I'm writing an image processing application in Java 2D and I want to
> launch the HTML help in a browser on clicking the relevant
> button.The application itself runs imdependant of the browser.
>
> I guess this is possible but can anyone point me in the right
> direction for examples or a code snippet would be great.
>
> Thanks in advance
>
> Ed Brown
>


==
Mona Wong-Barnum
National Center for Microscopy and Imaging Research
University of California, San Diego
http://ncmir.ucsd.edu/

"The truth shall set you free, but first it will piss you off"
A Landmark instructor
==

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Re: [JAVA2D] launching a browser

2002-08-01 Thread Darla Weiss

Try this:

http://www.javaworld.com/javaworld/javatips/jw-javatip66.html

=> Darla


Ed Brown wrote:
> Hi All
>
> I'm writing an image processing application in Java 2D and I want to
> launch the HTML help in a browser on clicking the relevant
> button.The application itself runs imdependant of the browser.
>
> I guess this is possible but can anyone point me in the right
> direction for examples or a code snippet would be great.
>
> Thanks in advance
>
> Ed Brown
>
> ===
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA2D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>
> .
>

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



[JAVA2D] launching a browser

2002-08-01 Thread Ed Brown

Hi All

I'm writing an image processing application in Java 2D and I want to
launch the HTML help in a browser on clicking the relevant
button.The application itself runs imdependant of the browser.

I guess this is possible but can anyone point me in the right
direction for examples or a code snippet would be great.

Thanks in advance

Ed Brown

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



[JAVA2D] HSB values explained

2002-08-01 Thread Jan Bösenberg

I noticed that there seem to be at least two systems for describing colors with HSB 
values. When converting a color in Java from RGB to HSB I get totally different values 
from the ones that my graphics software (Paint Shop Pro) tells me (they use values 
from 0 to 255, but that is not what I mean).

One example:

Red = 128, Green = 80, Blue = 64
Java-HSB: 0.41667, 0.5, 0.50196
PSP-HSB: 11, 85, 96

Does anybody know any resources where these systems are explained (preferably with 
some conversion algorithms)?

Thanks in advance

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".