aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Images/hardware.png
blob: 856cf1ec76b6a3cf6aa76c88ea35280d91b211cb (plain)
ofshex dumpascii
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 03 00 00 00 44 a4 8a .PNG........IHDR.............D..
0020 c6 00 00 00 03 73 42 49 54 08 08 08 db e1 4f e0 00 00 00 09 70 48 59 73 00 00 00 dd 00 00 00 dd .....sBIT.....O.....pHYs........
0040 01 70 53 a2 07 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 61 .pS......tEXtSoftware.www.inksca
0060 70 65 2e 6f 72 67 9b ee 3c 1a 00 00 01 9b 50 4c 54 45 ff ff ff b6 db 49 bf df 60 b3 cc 4d aa bf pe.org..<.....PLTE.....I..`..M..
0080 40 aa d5 55 bf d5 55 c2 d6 52 ae c5 46 c1
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.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();
        }
    }
}