public enum RasterColorDialogStringsId | Value | Member | Description |
|---|---|---|
| 0 | WindowLevelCaption | String ID for the Window Level dialog "Window Level" string. |
| 1 | WindowLevelRange | String ID for the Window Level dialog "Range:" string. |
| 2 | WindowLevelInside | String ID for the Window Level dialog "Inside" string. |
| 3 | WindowLevelOutside | String ID for the Window Level dialog "Outside" string. |
| 4 | WindowLevelColors | String ID for the Window Level dialog "Colors" string. |
| 5 | WindowLevelEndColors | String ID for the Window Level dialog "End Color:" string. |
| 6 | WindowLevelStartColors | String ID for the Window Level dialog "Start Color:" string. |
| 7 | WindowLevelLUTCurve | String ID for the Window Level dialog "LUT Carve" string. |
| 8 | WindowLevelCurveMode | String ID for the Window Level dialog "Mode:" string. |
| 9 | WindowLevelFactor | String ID for the Window Level dialog "Factor:" string. |
| 10 | WindowLevelLinear | String ID for the Window Level dialog "Linear" string. |
| 11 | WindowLevelExponential | String ID for the Window Level dialog "Exponential" string. |
| 12 | WindowLevelLogarithmic | String ID for the Window Level dialog "Logarithmic" string. |
| 13 | WindowLevelSigmoid | String ID for the Window Level dialog "Sigmoid" string. |
| 14 | WindowLevelLowLevel | String ID for the Window Level dialog "Low Level:" string. |
| 15 | WindowLevelHighLevel | String ID for the Window Level dialog "High Level:" string. |
| 16 | WindowLevelWindow | String ID for the Window Level dialog "Window" string. |
| 17 | WindowLevelCenter | String ID for the Window Level dialog "Center:" string. |
| 18 | WindowLevelWidth | String ID for the Window Level dialog "Width:" string. |
| 19 | WindowLevelOk | String ID for the Window Level dialog "OK" string. |
| 20 | WindowLevelCancel | String ID for the Window Level dialog "Cancel" string. |
| 21 | WindowLevelHelp | String ID for the Window Level dialog "Help" string. |
| 22 | WindowLevelValueDialogLowCaption | String ID for the Window Level dialog "Low Value Dialog" string. |
| 23 | WindowLevelValueDialogHighCaption | String ID for the Window Level dialog "High Value Dialog" string. |
| 24 | WindowLevelValueDialogValue | String ID for the Window Level dialog "Value:" string. |
| 25 | WindowLevelIdleStatus | String ID for the Window Level idle status |
| 26 | WindowLevelProcessingStatus | String ID for the Window Level processing status |
| 27 | WindowLevelCopyingStatus | String ID for the Window Level copying status |
| 28 | WindowLevelZoomToNormal | String ID for the Window Level zoom to normal option |
| 29 | WindowLevelZoomToFitWindow | String ID for the Window Level zoom to fit window option |
| 30 | WindowLevelNote | String ID for the Window Level tool tip note |
using Leadtools;using Leadtools.Codecs;using Leadtools.ImageProcessing.Core;using Leadtools.WinForms.CommonDialogs.Color;public void windowLevelDlg_Help(object sender, RasterColorDialogHelpEventArgs e){if (e.Dialog == RasterColorDialogHelpName.WindowLevel){MessageBox.Show("Window Level dialog Help");}}public void WindowLevelDialogExample(){// initialize the RasterCodecsRasterCodecs codecs = new RasterCodecs();// load an imageRasterImage rasterImage = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "Beauty16.jpg"));int size;RasterWindowLevelDialog windowLevelDlg = new RasterWindowLevelDialog();MinMaxBitsCommand minMaxBitsCmd = new MinMaxBitsCommand();MinMaxValuesCommand minMaxValuesCmd = new MinMaxValuesCommand();size = (1 << (rasterImage.HighBit - rasterImage.LowBit + 1));minMaxBitsCmd.Run(rasterImage);windowLevelDlg.LowBit = minMaxBitsCmd.MinimumBit;windowLevelDlg.HighBit = minMaxBitsCmd.MaximumBit;minMaxValuesCmd.Run(rasterImage);windowLevelDlg.Low = minMaxValuesCmd.MinimumValue;windowLevelDlg.High = minMaxValuesCmd.MaximumValue;windowLevelDlg.AutoProcess = false;windowLevelDlg.Factor = 0;windowLevelDlg.Image = rasterImage;windowLevelDlg.ZoomToFit = true;windowLevelDlg.ShowPreview = true;windowLevelDlg.ShowZoomLevel = true;windowLevelDlg.ShowHelp = false;windowLevelDlg.ShowRange = true;windowLevelDlg.Signed = rasterImage.Signed;windowLevelDlg.LookupTable = new Leadtools.RasterColor[size];windowLevelDlg.StartColor = new Leadtools.RasterColor(0, 0, 0);windowLevelDlg.EndColor = new Leadtools.RasterColor(255, 255, 255);windowLevelDlg.WindowLevelFlags = Leadtools.RasterPaletteWindowLevelFlags.Inside | Leadtools.RasterPaletteWindowLevelFlags.Linear;windowLevelDlg.Help += new EventHandler<RasterColorDialogHelpEventArgs>(windowLevelDlg_Help);if (DialogResult.OK == windowLevelDlg.ShowDialog(null)){WindowLevelCommand command = new WindowLevelCommand();command.HighBit = windowLevelDlg.HighBit;command.LowBit = windowLevelDlg.LowBit;command.LookupTable = windowLevelDlg.LookupTable;command.Order = Leadtools.RasterByteOrder.Bgr;command.Run(rasterImage);}// save the resulted imagecodecs.Save(rasterImage, Path.Combine(LEAD_VARS.ImagesDir, "WindowLevelDialogResult.bmp"), RasterImageFormat.Bmp, 24);}static class LEAD_VARS{public const string ImagesDir = @"C:\LEADTOOLS23\Resources\Images";}
Leadtools.WinForms.CommonDialogs.Color Namespace
RasterColorDialogStringsId Enumeration