| ofs | hex dump | ascii |
|---|
| 0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 80 00 00 00 80 08 04 00 00 00 69 37 a9 | .PNG........IHDR.............i7. |
| 0020 | 40 00 00 00 04 67 41 4d 41 00 00 b1 8f 0b fc 61 05 00 00 00 20 63 48 52 4d 00 00 7a 26 00 00 80 | @....gAMA......a.....cHRM..z&... |
| 0040 | 84 00 00 fa 00 00 00 80 e8 00 00 75 30 00 00 ea 60 00 00 3a 98 00 00 17 70 9c ba 51 3c 00 00 00 | ...........u0...`..:....p..Q<... |
| 0060 | 02 62 4b 47 44 00 00 aa 8d 23 32 00 00 00 09 70 48 59 73 00 00 0e c4 00 00 0e c4 01 95 2b 0e 1b | .bKGD....#2....pHYs..........+.. |
| 0080 | 00 00 00 07 74 49 4d 45 07 e3 03 1c 0e 21 39 d8 6f e1 9a 00 00 0e aa 49 44 41 54 78 da ed 5d 79 | ....tIME.....!9.o......IDATx..]y |
| 00a0 | 94 14 c5 19 ff 55 cf 2e 3b 0c a2 ac e0 81 02 c1 25 09 22 01 94 23 dc 11 16 96 97 80 04 d4 88 07 | .....U..;.......%."..#.......... |
| 00c0 | 46 c5 67 42 bc 50 c0 dd 39 c8 cb 1b ae ed ee 05 5d 43 24 8f 55 03 88 48 cc a2 ef 11 10 93 b0 b2 | F.gB.P..9.......]C$.U..H........ |
| 00e0 | 1c 82 ac c8 25 1a 05 94 15 11 09 88 b0 ac 2c b0 b3 33 d3 95 3f ba ba 67 7a 66 7a a6 7b a6 67 66 | ....%.........,..3..?..gzfz.{.gf |
| 0100 | 39 be fd 63 aa be ee aa ae df af ab aa bf aa fa aa 96 20 09 11 bb d1 cf 92 49 97 19 91 c6 78 de | 9..c.....................I....x. |
| 0120 | 35 7e 37 97 ed e2 66 5b 2e 13 90 ed 02 64 5b 72 52 4a ed a3 b7 64 1b 40 48 c8 3a 74 c9 34 01 d4 | 5~7...f[.....d[rRJ...d.@H.:t.4.. |
| 0140 | 5d 9b 6d d8 21 11 9a 92 49 75 c9 37 81 cb 04 64 bb 00 d9 96 cb 04 64 bb 00 d9 96 4b 9e 80 1c b1 | ].m.!...Iu.7...d......d....K...using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using Tango.BL.Entities;
namespace Tango.MachineStudio.Developer.Converters
{
public class BrushStopToOffsetValueConverter : IMultiValueConverter
{
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
{
try
{
BrushStop stop = values[0] as BrushStop;
Segment segment = values[1] as Segment;
if (stop != null && segment != null)
{
if (stop.IsLast)
{
return 100d;
}
else if (stop.IsFirst)
{
return 0d;
}
else
{
return stop.OffsetPercent;
}
}
else
{
return 0d;
}
}
catch
{
return 0d;
}
}
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}
|