Skip to content

Utils.ImageColorPicker

JaykeBird edited this page Feb 21, 2023 · 5 revisions

Back to home | Back to Reference | View raw text

ImageColorPicker class

Description

Image element with the ability to pick out a pixel color value.

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph SolidShineUi.Utils
  SolidShineUi.Utils.ImageColorPicker[[ImageColorPicker]]
  end
  subgraph System.Windows.Controls
System.Windows.Controls.Image[[Image]]
  end
System.Windows.Controls.Image --> SolidShineUi.Utils.ImageColorPicker
Loading

Members

Properties

Public properties

Type Name Methods
Nullable<Color> SelectedColor
Get the color that is selected from the image.
get
Nullable<Point> SelectedPosition
Get the position that is selected from the image. This position is relative to the control itself.
get

Details

Summary

Image element with the ability to pick out a pixel color value.

Remarks

Note that if this is used in a WPF project that isn't DPI-Aware, this control will perform weirdly on screens with a DPI value other than 100%.

Inheritance

  • Image

Constructors

ImageColorPicker

public ImageColorPicker()
Summary

Create a ImageColorPicker.

Properties

SelectedColor

public Nullable<Color> SelectedColor { get; }
Summary

Get the color that is selected from the image.

SelectedPosition

public Nullable<Point> SelectedPosition { get; }
Summary

Get the position that is selected from the image. This position is relative to the control itself.

Events

SelectedColorChanged

public event RoutedEventHandler SelectedColorChanged
Summary

Raised when the SelectedColor property is changed.

Generated with ModularDoc

Clone this wiki locally