public SmdhProperties(SMDH smdh, Icon icon) { InitializeComponent(); Icon = icon; _smdh = smdh; }
public void Load(string filename) { FileInfo = new FileInfo(filename); if (FileInfo.Exists) { _smdh = new SMDH(FileInfo.OpenRead()); _bitmaps = _smdh.bmps.Select(o => new SMDHBitmapInfo { Bitmap = o, Format = new RGBA(5, 6, 5).FormatName }).ToList <BitmapInfo>(); } }
public void Load(string filename) { FileInfo = new FileInfo(filename); if (FileInfo.Exists) { _smdh = new SMDH(FileInfo.OpenRead()); _bitmaps = _smdh.bmps.Select(o => new SMDHBitmapInfo { Bitmap = o, Format = Cetera.Image.Format.RGB565 }).ToList <BitmapInfo>(); } }