-
Notifications
You must be signed in to change notification settings - Fork 3
Utils.ImageColorPicker
JaykeBird edited this page Feb 21, 2023
·
5 revisions
Back to home | Back to Reference | View raw text
Image element with the ability to pick out a pixel color value.
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
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 |
Image element with the ability to pick out a pixel color value.
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%.
Image
public ImageColorPicker()
Create a ImageColorPicker.
public Nullable<Color> SelectedColor { get; }
Get the color that is selected from the image.
public Nullable<Point> SelectedPosition { get; }
Get the position that is selected from the image. This position is relative to the control itself.
public event RoutedEventHandler SelectedColorChanged
Raised when the SelectedColor property is changed.
Generated with ModularDoc