SukuSuku.MainForm.AddScreenshot C# (CSharp) Метод

AddScreenshot() приватный Метод

スクリーンショット画像をバッファに追加
private AddScreenshot ( string imageKey, Bitmap bmp ) : void
imageKey string 画像名
bmp Bitmap 画像データ
Результат void
        void AddScreenshot(string imageKey, Bitmap bmp)
        {
            var index = thumbNailList.Images.Count;
            thumbNailList.Images.Add(imageKey, CreateThumbnail(bmp));
            if (thumbNailView.Items.ContainsKey(imageKey))
            {
                thumbNailView.Items[imageKey].ImageIndex = index;
            }
            else
            {
                thumbNailView.Items.Add(imageKey, imageKey, index);
            }
            templates[imageKey] = BitmapConverter.ToIplImage(bmp);
            templateBMPs[imageKey] = bmp;
        }
MainForm