Re: cw_fslider [message #13926] |
Tue, 29 December 1998 00:00  |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
Lisa Bryan wrote:
>
> Hello all,
>
> I am having problem with the DRAG keyword to the CW_FSLIDER function.
> When using this slider I want to see the values change as I slide the
> slider button. This feature is described in the help section under
> the keyword DRAG. According to the help section by setting /DRAG, I
> should be able to see events as I drag the slider button. And, in
> fact, this works as described in the WIDGET_SLIDER function using the
> same keyword. Unfortunately, I need to use the floating version of
> this function. BTW, I'm using this to build a tool for interactively
> changing the greylevels of a displayed image. Anyone out there
> already done this? Thanks for your help.
>
> P.S. I'm still looking for the double slider if anyone has it.
>
Lisa -
You might be interested in my GRAYSCALE.PRO routine. It is a double
slider that allows you to interactively adjust the grayscale. You
will need my STRETCH2.PRO as well. You can define colors that are
to be preserved, a minimum and maximum value for the grayscale,
and you can create a "slit-scale" where half the values are used
for a grayscale and half are used for a "color-scale" using the
color of your choice.
It would be pretty easy to modify this to use the floating sliders.
These can be downloaded from:
ftp://bial8.ucsd.edu/pub/software/idl/share/idl_share.tar.gz
Dave
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|