|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace Mapper
{
/// <summary>
/// Defines an iterative mapper. That is, a mapper that generates a number of candidate sprites
/// and picks the best one.
/// </summary>
/// <typeparam name="S"></typeparam>
public interface IMapperReturningStats<S> : IMapper<S> where S : class, ISprite, new()
{
/// <summary>
/// Version of IMapper.Mapping. See IMapper.
/// </summary>
/// <param name="images">Same as for IMapper.Mapping</param>
/// <param name="mapperStats">
/// The method will fill the properties of this statistics object.
/// Set to null if you don't want statistics.
/// </param>
/// <returns>
/// Same as for IMapper.Mapping
/// </returns>
S Mapping(IEnumerable<IImageInfo> images, IMapperStats mapperStats);
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Twitter: @MattPerdeck
LinkedIn: au.linkedin.com/in/mattperdeck
Current project:
JSNLog JavaScript Logging Package
Matt has over 9 years .NET and SQL Server development experience. Before getting into .Net, he worked on a number of systems, ranging from the largest ATM network in The Netherlands to embedded software in advanced Wide Area Networks and the largest ticketing web site in Australia. He has lived and worked in Australia, The Netherlands, Slovakia and Thailand.
He is the author of the book ASP.NET Performance Secrets (www.amazon.com/ASP-NET-Site-Performance-Secrets-Perdeck/dp/1849690685) in which he shows in clear and practical terms how to quickly find the biggest bottlenecks holding back the performance of your web site, and how to then remove those bottlenecks. The book deals with all environments affecting a web site - the web server, the database server and the browser.
Matt currently lives in Sydney, Australia. He recently worked at Readify and the global professional services company PwC. He now works at SP Health, a global provider of weight loss web sites such at CSIRO's TotalWellBeingDiet.com and BiggestLoserClub.com.