Loading files
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IImageDecoder.cs" company="OxyPlot">
// Copyright (c) 2014 OxyPlot contributors
// </copyright>
// <summary>
// Specifies functionality to decode an image.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace OxyPlot
{
/// <summary>
/// Specifies functionality to decode an image.
/// </summary>
public interface IImageDecoder
{
/// <summary>
/// Gets information about the image in the specified byte array.
/// </summary>
/// <param name="bytes">The image data.</param>
/// <returns>An <see cref="OxyImageInfo" /> structure.</returns>
OxyImageInfo GetImageInfo(byte[] bytes);
/// <summary>
/// Decodes an image from the specified byte array.
/// </summary>
/// <param name="bytes">The image data.</param>
/// <returns>The 32-bit pixel data. The indexing is [x,y] where [0,0] is top-left.</returns>
OxyColor[,] Decode(byte[] bytes);
}
}366e28f22This file is pinned to the selected release. Download the original to open it in your design tool.