Did a lot of work just unit testing left
This commit is contained in:
25
Shapes/Image.cs
Normal file
25
Shapes/Image.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using static Shapes.ImageManager;
|
||||
|
||||
namespace Shapes
|
||||
{
|
||||
public class Image : Rectangle
|
||||
{
|
||||
public Bitmap Picture { get; private set; }
|
||||
public Image(Point point1, Point point2, Point point3, Point point4, Stream stream) : base(point1, point2, point3, point4)
|
||||
{
|
||||
Picture = GetImage(stream);
|
||||
}
|
||||
|
||||
public Image(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, Stream stream) : base(x1, y1, x2, y2, x3, y3, x4, y4)
|
||||
{
|
||||
Picture = GetImage(stream);
|
||||
}
|
||||
|
||||
public Image(Point point, Size size, Stream stream) : base(point, size)
|
||||
{
|
||||
Picture = GetImage(stream);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user