コード例 #1
0
 public void GetSwfFileDimensions(string fileServerPath,  out int width, out int height)
 {
     var file = new SWFFile(fileServerPath);
     width = file.FrameWidth / 20;
     height = file.FrameHeight / 20;
     /*
     var parser = new FlashHeaderReader(fileServerPath);
     width = parser.Width;
     height = parser.Height;*/
 }
コード例 #2
0
ファイル: PluginUI.cs プロジェクト: Dsnoi/flashdevelopjp
        public void OpenSWF(String path)
        {
            unloadMovie();

            if (System.IO.File.Exists(path))
            {
                SWFFile swfFile = new SWFFile(path);

                defaultSWFWidth = swfFile.FrameWidth / 20;
                defaultSWFHeight = swfFile.FrameHeight / 20;

                swfFile.Close();

                fileNameLabel.Text = System.IO.Path.GetFileName(path);
                file = path;
                setupView();
                MoviePath = path;

                IsSWFPlaying = true;
            }
            else
            {
                file = "";
                fileNameLabel.Text = "";
                ErrorManager.ShowInfo(LocaleHelper.GetString("Info.FileExists"));
            }
        }