/// <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; }
/// <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; }
/// <summary> /// Initializes a new instance of the <see cref="VideoTrack"/> class. /// </summary> public VideoTrack() { this.dimensions = new Size(1920, 1080); this.format = ColorFormat.Default; }
/// <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); }
/// <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) { }
public Resize(Size targetSize, ResizeMethod method) { this.targetSize = targetSize; this.method = method; }
/// <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; }