The Artima Developer Community
Sponsored Link

Java Answers Forum
JSlider that allows a range of gamma

1 reply on 1 page. Most recent reply: Apr 5, 2004 7:56 AM by Matthias Neumair

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
wel

Posts: 1
Nickname: boxer123
Registered: Mar, 2004

JSlider that allows a range of gamma Posted: Mar 30, 2004 4:35 PM
Reply to this message Reply
Advertisement
how do you combine a jslider that allows selection of a range of gamma of various colors?


Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: JSlider that allows a range of gamma Posted: Apr 5, 2004 7:56 AM
Reply to this message Reply
I don't exactly understand the problem.

Creating a color is easy: Just combine 3 values (R, G, B).

Give the slider a range from 0 to 255. When the slider is changed, read it's value and calculate the new color.

A slider gives you just a numeric value. You can do whatever you want with this value.

If you want to use it tp calculate a gamma correction, then just do so.

Flat View: This topic has 1 reply on 1 page
Topic: Auto-correcting TextArea... Previous Topic   Next Topic Topic: case tools

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use