set_lut_styleT_set_lut_styleSetLutStyleSetLutStyle (Operator)

Name

set_lut_styleT_set_lut_styleSetLutStyleSetLutStyle — Verändern der Farbtabelle.

Warnung

set_lut_styleset_lut_styleSetLutStyleSetLutStyleSetLutStyle ist veraltet und wird nur aus Gründen der Rückwärtskompatibilität zur Verfügung gestellt.

Signatur

set_lut_style( : : WindowHandle, Hue, Saturation, Intensity : )

Herror T_set_lut_style(const Htuple WindowHandle, const Htuple Hue, const Htuple Saturation, const Htuple Intensity)

void SetLutStyle(const HTuple& WindowHandle, const HTuple& Hue, const HTuple& Saturation, const HTuple& Intensity)

void HWindow::SetLutStyle(double Hue, double Saturation, double Intensity) const

static void HOperatorSet.SetLutStyle(HTuple windowHandle, HTuple hue, HTuple saturation, HTuple intensity)

void HWindow.SetLutStyle(double hue, double saturation, double intensity)

Beschreibung

set_lut_styleset_lut_styleSetLutStyleSetLutStyleSetLutStyle verändert die Farbtabelle des Gerätes, auf dem das Ausgabefenster dargestellt wird. Dabei haben die drei Parameter folgende Bedeutung:

Hue:

Rotation des Farbraumes

HueHueHueHuehue = 1.0 entspricht einer einmaligen Rotation des Farbraumes.

Keine Veränderung: HueHueHueHuehue = 0.0

Komplementärfarben: HueHueHueHuehue = 0.5

Saturation:

Veränderung der Sättigung

Keine Veränderung: SaturationSaturationSaturationSaturationsaturation = 1.0

Graubild: SaturationSaturationSaturationSaturationsaturation = 0.0

Intensity

Veränderung der Helligkeit

Keine Veränderung: IntensityIntensityIntensityIntensityintensity = 1.0

schwarzes Bild: IntensityIntensityIntensityIntensityintensity = 0.0

Verändert werden nur der Teil der Farbtabelle, der für die Darstellung der Bildinformation verwendet wird. Die Modifikationsparameter bleiben erhalten bis set_lut_styleset_lut_styleSetLutStyleSetLutStyleSetLutStyle erneut aufgerufen wird. Ein Aufruf von set_lutset_lutSetLutSetLutSetLut hat keinen Einfluss auf diese Parameter.

Ausführungsinformationen

Parameter

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Fensteridentifikator.

HueHueHueHuehue (input_control)  real HTupleHTupleHtuple (real) (double) (double) (double)

Farbwertmodifikation.

Defaultwert: 0.0

Typischer Wertebereich: 0.0 ≤ Hue Hue Hue Hue hue ≤ 1.0

Restriktion: 0.0 >= Hue && Hue <= 1.0

SaturationSaturationSaturationSaturationsaturation (input_control)  real HTupleHTupleHtuple (real) (double) (double) (double)

Modifikation der Sättigung.

Defaultwert: 1.5

Typischer Wertebereich: 0.0 ≤ Saturation Saturation Saturation Saturation saturation

Restriktion: 0.0 <= Saturation

IntensityIntensityIntensityIntensityintensity (input_control)  real HTupleHTupleHtuple (real) (double) (double) (double)

Modifikation der Intensität.

Defaultwert: 1.5

Typischer Wertebereich: 0.0 ≤ Intensity Intensity Intensity Intensity intensity

Restriktion: 0.0 <= Intensity

Beispiel (HDevelop)

read_image(Image,'monkey')
dev_set_lut('color1')
repeat
  get_mbutton(WindowHandle,Row,Column,Button)
  Saturation := Row/300.0
  Hue := Column/512.0
  set_lut_style(WindowHandle,Hue,Saturation,1.0)
  dev_display(Image)
until(Button == 4)

Beispiel (C)

read_image(&Image,"monkey");
set_lut(WindowHandle,"color1");
do{
  get_mbutton(WindowHandle,&Row,&Column,&Button);
  Saturation= Row/300.0;
  Hue = Column/512.0;
  set_lut_style(WindowHandle,Hue,Saturation,1.0);
  disp_image(Image);
}
while(Button != 4);

Beispiel (HDevelop)

read_image(Image,'monkey')
dev_set_lut('color1')
repeat
  get_mbutton(WindowHandle,Row,Column,Button)
  Saturation := Row/300.0
  Hue := Column/512.0
  set_lut_style(WindowHandle,Hue,Saturation,1.0)
  dev_display(Image)
until(Button == 4)

Beispiel (HDevelop)

read_image(Image,'monkey')
dev_set_lut('color1')
repeat
  get_mbutton(WindowHandle,Row,Column,Button)
  Saturation := Row/300.0
  Hue := Column/512.0
  set_lut_style(WindowHandle,Hue,Saturation,1.0)
  dev_display(Image)
until(Button == 4)

Beispiel (HDevelop)

read_image(Image,'monkey')
dev_set_lut('color1')
repeat
  get_mbutton(WindowHandle,Row,Column,Button)
  Saturation := Row/300.0
  Hue := Column/512.0
  set_lut_style(WindowHandle,Hue,Saturation,1.0)
  dev_display(Image)
until(Button == 4)

Ergebnis

set_lut_styleset_lut_styleSetLutStyleSetLutStyleSetLutStyle liefert den Wert 2 (H_MSG_TRUE), falls der Parameter korrekt ist und das Fenster gültig ist. Ansonsten wird eine Fehlerbehandlung durchgeführt.

Vorgänger

get_lut_styleget_lut_styleGetLutStyleGetLutStyleGetLutStyle

Nachfolger

set_lutset_lutSetLutSetLutSetLut

Alternativen

set_lutset_lutSetLutSetLutSetLut, scale_imagescale_imageScaleImageScaleImageScaleImage

Siehe auch

get_lut_styleget_lut_styleGetLutStyleGetLutStyleGetLutStyle

Modul

Foundation