Exemplo n.º 1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="bitmap"></param>
        public VideoTrack(IBitmap bitmap)
        {
            Contract.Requires(bitmap != null);

            this.dimensions = new Size(bitmap.Width, bitmap.Height);
            this.format = bitmap.Format;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="VideoTrack"/> class.
        /// </summary>
        /// <param name="width">The width, in pixels, of video frames in the new <see cref="VideoTrack"/>.</param>
        /// <param name="height">The height, in pixels, of video frames in the new <see cref="VideoTrack"/>.</param>
        public VideoTrack(int width, int height)
        {
            Contract.Requires(width >= 0);
            Contract.Requires(height >= 0);

            this.dimensions = new Size(width, height);
            this.format = ColorFormat.Default;
        }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VideoTrack"/> class.
 /// </summary>
 public VideoTrack()
 {
     this.dimensions = new Size(1920, 1080);
     this.format = ColorFormat.Default;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BitmapRGB48"/> class.
 /// </summary>
 /// <param name="size">The dimensions (in pixels) of the new bitmap.</param>
 /// <param name="pixels">The pixel data to initialize the new bitmap with.</param>
 public BitmapRGB48(Size size, ColorRGB48[] pixels)
     : base(size, pixels)
 {
     Contract.Requires(pixels != null);
     Contract.Requires(pixels.Length == size.Elements);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BitmapRGB48"/> class.
 /// </summary>
 /// <param name="size">The dimensions (in pixels) of the new bitmap.</param>
 public BitmapRGB48(Size size)
     : base(size)
 {
 }
Exemplo n.º 6
0
 public Resize(Size targetSize, ResizeMethod method)
 {
     this.targetSize = targetSize;
     this.method = method;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Resize"/> class
 /// with the specified <see cref="NSynth.Imaging.Size"/>.
 /// </summary>
 /// <param name="size"></param>
 public Resize(Size targetSize)
 {
     this.targetSize = targetSize;
 }