blob: e7c25faa213cfa256fc5c70ef63f6e65d7dacf96 (
plain)
| ofs | hex dump | ascii |
|---|
| 0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 20 00 00 00 20 08 06 00 00 00 73 7a 7a | .PNG........IHDR.............szz |
| 0020 | f4 00 00 00 04 73 42 49 54 08 08 08 08 7c 08 64 88 00 00 00 09 70 48 59 73 00 00 00 ee 00 00 00 | .....sBIT....|.d.....pHYs....... |
| 0040 | ee 01 06 d6 b2 34 00 00 00 19 74 45 58 74 53 6f 66 74 77 61 72 65 00 77 77 77 2e 69 6e 6b 73 63 | .....4....tEXtSoftware.www.inksc |
| 0060 | 61 70 65 2e 6f 72 67 9b ee 3c 1a 00 00 07 3c 49 44 41 54 58 85 b5 57 6d 50 54 d7 19 7e ce b9 f7 | ape.org..<....<IDATX..WmPT..~... |
| 0080 | 2e bb 80 60 84 18 51 01 05 35 3a c3 04 65 ef 7e 70 77 57 b2using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using Tango.MachineStudio.Logging.Helpers;
namespace Tango.MachineStudio.Logging.Converters
{
public class SecondsToWidthConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
double scale = (double)value;
double seconds = System.Convert.ToDouble(parameter.ToString());
return TimelineHelper.ConvertTimeToPixels(TimeSpan.FromSeconds(seconds), scale);
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}
|