Exemplo n.º 1
0
        public ThumbControl(IThumbsControlContainer thumbsControlContainer, FFmpegResult thumbResult, int width, int height)
        {
            Width  = width;
            Height = height;

            InitializeComponent();
            UpdateContainerAndResult(thumbsControlContainer, thumbResult);
        }
Exemplo n.º 2
0
 public void UpdateContainerAndResult(IThumbsControlContainer thumbsControlContainer, FFmpegResult thumbResult)
 {
     _thumbsControlContainer = thumbsControlContainer;
     _thumbResult            = thumbResult;
     if (thumbResult != null)
     {
         _bitmap = (thumbResult.Bitmap != null) ? ThumbUtil.ResizeBitmap(thumbResult.Bitmap, Width, Height) : ThumbUtil.GetErrorBitmap();
         Invalidate();
     }
 }
Exemplo n.º 3
0
 public ThumbControl(IThumbsControlContainer thumbsControlContainer, FFmpegResult thumbResult) :
     this(thumbsControlContainer, thumbResult, ThumbUtil.ThumbWidth, ThumbUtil.ThumbHeight)
 {
     InitializeComponent();
 }