Browse Source

Changed the copy constructor to also support an ImageBase instance.

af/merge-core
dirk 10 years ago
committed by Dirk Lemstra
parent
commit
3350833c97
  1. 8
      src/ImageSharp/Image/ImageFrame.cs

8
src/ImageSharp/Image/ImageFrame.cs

@ -24,11 +24,11 @@ namespace ImageSharp
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ImageFrame{TColor, TPacked}"/> class. /// Initializes a new instance of the <see cref="ImageFrame{TColor, TPacked}"/> class.
/// </summary> /// </summary>
/// <param name="frame"> /// <param name="image">
/// The frame to create the frame from. /// The image to create the frame from.
/// </param> /// </param>
public ImageFrame(ImageFrame<TColor, TPacked> frame) public ImageFrame(ImageBase<TColor, TPacked> image)
: base(frame) : base(image)
{ {
} }

Loading…
Cancel
Save