Looking for ideas to collect data points selected from picture
-
Looking for ideas on how to draw graphic/convert image to a compilation of custom button(s) or other means to display on screen and be able to select/highlight those selected points. then store the selected points to a database for later review/display. For example, a static map is displayed and then by mouse selection the data points are taken and then an area is highlighted. Any help would or thoughts would be appreciated. thanks
-
Looking for ideas on how to draw graphic/convert image to a compilation of custom button(s) or other means to display on screen and be able to select/highlight those selected points. then store the selected points to a database for later review/display. For example, a static map is displayed and then by mouse selection the data points are taken and then an area is highlighted. Any help would or thoughts would be appreciated. thanks
Actually, that sounds like a perfect fit for Microsoft's WPF technology. Marc
-
Looking for ideas on how to draw graphic/convert image to a compilation of custom button(s) or other means to display on screen and be able to select/highlight those selected points. then store the selected points to a database for later review/display. For example, a static map is displayed and then by mouse selection the data points are taken and then an area is highlighted. Any help would or thoughts would be appreciated. thanks
Well - as Marc said, this could be done in WPF and you would end up creating polygon buttons. Here's a sample:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="GlassyButton.Window2"
x:Name="Window"
Title="Window2"
Width="640" Height="480"><Window.Resources>
<Style TargetType="Button">
<Setter Property="OverridesDefaultStyle" Value="True" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid>
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
<Polygon Points="10,20 10,100 100,200 300,205 10,20" Stroke="Red">
<Polygon.Fill>
<LinearGradientBrush EndPoint="0.473,0.464" StartPoint="0.25,0.039">
<GradientStop Color="#8FFFFFFC" Offset="0"/>
<GradientStop Color="#33FFFFFF" Offset="1"/>
</LinearGradientBrush>
</Polygon.Fill>
</Polygon>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources><Grid x:Name="LayoutRoot"> <Button HorizontalAlignment="Left" VerticalAlignment="Top" Content="Button"/> </Grid>
</Window>
Deja View - the feeling that you've seen this post before.