public Fullscreen(object[] args) { InitializeComponent(); if (args.Length != 2) { return; } ImageList.AddRange((List <Img>)args[0]); ImagePosition = (int)args[1]; threadForward = new Thread(execution); threadForward.IsBackground = true; threadForward.Start(); }
private void LoadPDF(string filename) { ImageList.Clear(); using (var reader = new PdfReader(filename)) { var parser = new PdfReaderContentParser(reader); var listener = new RenderListener(); for (int pageNumber = 1; pageNumber <= reader.NumberOfPages; pageNumber++) { parser.ProcessContent(pageNumber, listener); } ImageList.AddRange(listener.Images); } ShowPage(0); }