mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.0 KiB
60 lines
2.0 KiB
// <copyright file="Image.cs" company="James Jackson-South">
|
|
// Copyright (c) James Jackson-South and contributors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
// </copyright>
|
|
|
|
namespace ImageProcessorCore
|
|
{
|
|
using System.Diagnostics;
|
|
using System.IO;
|
|
|
|
/// <summary>
|
|
/// Represents an image. Each pixel is a made up four 8-bit components red, green, blue, and alpha
|
|
/// packed into a single unsigned integer value.
|
|
/// </summary>
|
|
[DebuggerDisplay("Image: {Width}x{Height}")]
|
|
public class Image : Image<Color, uint>
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="Image"/> class
|
|
/// with the height and the width of the image.
|
|
/// </summary>
|
|
public Image()
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="Image"/> class
|
|
/// with the height and the width of the image.
|
|
/// </summary>
|
|
/// <param name="width">The width of the image in pixels.</param>
|
|
/// <param name="height">The height of the image in pixels.</param>
|
|
public Image(int width, int height)
|
|
: base(width, height)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="Image"/> class.
|
|
/// </summary>
|
|
/// <param name="stream">
|
|
/// The stream containing image information.
|
|
/// </param>
|
|
/// <exception cref="ArgumentNullException">Thrown if the <paramref name="stream"/> is null.</exception>
|
|
public Image(Stream stream)
|
|
: base(stream)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="Image"/> class
|
|
/// by making a copy from another image.
|
|
/// </summary>
|
|
/// <param name="other">The other image, where the clone should be made from.</param>
|
|
/// <exception cref="ArgumentNullException"><paramref name="other"/> is null.</exception>
|
|
public Image(Image other)
|
|
: base(other)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|