コード例 #1
0
ファイル: ImageView.cs プロジェクト: lrmymycn/befun
        private void InitData()
        {
            this.Closing += new CancelEventHandler(this.Form_Closing);

            Image image = PictureUtils.GenerateImage(this.image);
            int height = image.Height;
            int width = image.Width;
            this.Width = width + 10;
            this.Height = height + 20;
            this.pictureBox.Width = width;
            this.pictureBox.Height = height;
            PictureUtils.RenderPicture(this.pictureBox, this.image);
        }
コード例 #2
0
 private Image parseImage(string media)
 {
     return(PictureUtils.GenerateImage(media));
 }