set_lut_styleT_set_lut_styleSetLutStyleSetLutStyleset_lut_style (Operator)

Name

set_lut_styleT_set_lut_styleSetLutStyleSetLutStyleset_lut_style — Verändern der Farbtabelle.

Warnung

set_lut_styleset_lut_styleSetLutStyleSetLutStyleSetLutStyleset_lut_style 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)

def set_lut_style(window_handle: HHandle, hue: float, saturation: float, intensity: float) -> None

Beschreibung

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

Hue:

Rotation des Farbraumes

HueHueHueHuehuehue = 1.0 entspricht einer einmaligen Rotation des Farbraumes.

Keine Veränderung: HueHueHueHuehuehue = 0.0

Komplementärfarben: HueHueHueHuehuehue = 0.5

Saturation:

Veränderung der Sättigung

Keine Veränderung: SaturationSaturationSaturationSaturationsaturationsaturation = 1.0

Grauwertbild: SaturationSaturationSaturationSaturationsaturationsaturation = 0.0

Intensity

Veränderung der Helligkeit

Keine Veränderung: IntensityIntensityIntensityIntensityintensityintensity = 1.0

schwarzes Bild: IntensityIntensityIntensityIntensityintensityintensity = 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_styleSetLutStyleSetLutStyleSetLutStyleset_lut_style erneut aufgerufen wird. Ein Aufruf von set_lutset_lutSetLutSetLutSetLutset_lut hat keinen Einfluss auf diese Parameter.

Ausführungsinformationen

Parameter

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Fensteridentifikator.

HueHueHueHuehuehue (input_control)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

Farbwertmodifikation.

Defaultwert: 0.0

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

SaturationSaturationSaturationSaturationsaturationsaturation (input_control)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

Modifikation der Sättigung.

Defaultwert: 1.5

Typischer Wertebereich: 0.0 ≤ Saturation Saturation Saturation Saturation saturation saturation

IntensityIntensityIntensityIntensityintensityintensity (input_control)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

Modifikation der Intensität.

Defaultwert: 1.5

Typischer Wertebereich: 0.0 ≤ Intensity Intensity Intensity Intensity intensity 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_styleSetLutStyleSetLutStyleSetLutStyleset_lut_style 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_styleGetLutStyleGetLutStyleGetLutStyleget_lut_style

Nachfolger

set_lutset_lutSetLutSetLutSetLutset_lut

Alternativen

set_lutset_lutSetLutSetLutSetLutset_lut, scale_imagescale_imageScaleImageScaleImageScaleImagescale_image

Siehe auch

get_lut_styleget_lut_styleGetLutStyleGetLutStyleGetLutStyleget_lut_style

Modul

Foundation