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.
32 lines
935 B
32 lines
935 B
// Copyright (c) Six Labors and contributors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
using SixLabors.ImageSharp.Memory;
|
|
using SixLabors.ImageSharp.PixelFormats;
|
|
|
|
namespace SixLabors.ImageSharp.Advanced
|
|
{
|
|
/// <summary>
|
|
/// Encapsulates the basic properties and methods required to manipulate images.
|
|
/// </summary>
|
|
internal interface IPixelSource
|
|
{
|
|
/// <summary>
|
|
/// Gets the pixel buffer.
|
|
/// </summary>
|
|
Buffer2D<byte> PixelBuffer { get; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Encapsulates the basic properties and methods required to manipulate images.
|
|
/// </summary>
|
|
/// <typeparam name="TPixel">The type of the pixel.</typeparam>
|
|
internal interface IPixelSource<TPixel>
|
|
where TPixel : unmanaged, IPixel<TPixel>
|
|
{
|
|
/// <summary>
|
|
/// Gets the pixel buffer.
|
|
/// </summary>
|
|
Buffer2D<TPixel> PixelBuffer { get; }
|
|
}
|
|
}
|
|
|