Browse Source

Moved IImageBase to a separate file.

af/merge-core
Dirk Lemstra 9 years ago
parent
commit
82fbca72f6
  1. 56
      src/ImageSharp/Image/IImageBase.cs
  2. 49
      src/ImageSharp/Image/IImageBase{TColor}.cs

56
src/ImageSharp/Image/IImageBase.cs

@ -0,0 +1,56 @@
// <copyright file="IImageBase{TColor}.cs" company="James Jackson-South">
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp
{
/// <summary>
/// Encapsulates the basic properties and methods required to manipulate images.
/// </summary>
public interface IImageBase
{
/// <summary>
/// Gets the <see cref="Rectangle"/> representing the bounds of the image.
/// </summary>
Rectangle Bounds { get; }
/// <summary>
/// Gets or sets the quality of the image. This affects the output quality of lossy image formats.
/// </summary>
int Quality { get; set; }
/// <summary>
/// Gets or sets the frame delay for animated images.
/// If not 0, this field specifies the number of hundredths (1/100) of a second to
/// wait before continuing with the processing of the Data Stream.
/// The clock starts ticking immediately after the graphic is rendered.
/// </summary>
int FrameDelay { get; set; }
/// <summary>
/// Gets or sets the maximum allowable width in pixels.
/// </summary>
int MaxWidth { get; set; }
/// <summary>
/// Gets or sets the maximum allowable height in pixels.
/// </summary>
int MaxHeight { get; set; }
/// <summary>
/// Gets the width in pixels.
/// </summary>
int Width { get; }
/// <summary>
/// Gets the height in pixels.
/// </summary>
int Height { get; }
/// <summary>
/// Gets the pixel ratio made up of the width and height.
/// </summary>
double PixelRatio { get; }
}
}

49
src/ImageSharp/Image/IImageBase{TColor}.cs

@ -40,53 +40,4 @@ namespace ImageSharp
/// <returns>The <see cref="PixelAccessor{TColor}"/></returns>
PixelAccessor<TColor> Lock();
}
/// <summary>
/// Encapsulates the basic properties and methods required to manipulate images.
/// </summary>
public interface IImageBase
{
/// <summary>
/// Gets the <see cref="Rectangle"/> representing the bounds of the image.
/// </summary>
Rectangle Bounds { get; }
/// <summary>
/// Gets or sets the quality of the image. This affects the output quality of lossy image formats.
/// </summary>
int Quality { get; set; }
/// <summary>
/// Gets or sets the frame delay for animated images.
/// If not 0, this field specifies the number of hundredths (1/100) of a second to
/// wait before continuing with the processing of the Data Stream.
/// The clock starts ticking immediately after the graphic is rendered.
/// </summary>
int FrameDelay { get; set; }
/// <summary>
/// Gets or sets the maximum allowable width in pixels.
/// </summary>
int MaxWidth { get; set; }
/// <summary>
/// Gets or sets the maximum allowable height in pixels.
/// </summary>
int MaxHeight { get; set; }
/// <summary>
/// Gets the width in pixels.
/// </summary>
int Width { get; }
/// <summary>
/// Gets the height in pixels.
/// </summary>
int Height { get; }
/// <summary>
/// Gets the pixel ratio made up of the width and height.
/// </summary>
double PixelRatio { get; }
}
}
Loading…
Cancel
Save