Click here to Skip to main content
13,803,589 members
Click here to Skip to main content

Tagged as


57 bookmarked
Posted 14 Jun 2011
Licenced CPOL

Fast Optimizing Rectangle Packing Algorithm for Building CSS Sprites

, 14 Jun 2011
Describes a fast algorithm to pack a series of rectangles of varying widths and heights into an enclosing rectangle of minimum size

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Web Developer Express 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mapper", "Mapper\Mapper.csproj", "{A407090B-E706-431A-AA21-C1F83BCFB6ED}"
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "MapperTestSite", "MapperTestSite\", "{EB4FE994-2FB2-4C1B-A3FF-F1DAC75D95ED}"
	ProjectSection(WebsiteProperties) = preProject
		TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0"
		ProjectReferences = "{A407090B-E706-431A-AA21-C1F83BCFB6ED}|Mapper.dll;"
		Debug.AspNetCompiler.VirtualPath = "/MapperTestSite"
		Debug.AspNetCompiler.PhysicalPath = "MapperTestSite\"
		Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\MapperTestSite\"
		Debug.AspNetCompiler.Updateable = "true"
		Debug.AspNetCompiler.ForceOverwrite = "true"
		Debug.AspNetCompiler.FixedNames = "false"
		Debug.AspNetCompiler.Debug = "True"
		Release.AspNetCompiler.VirtualPath = "/MapperTestSite"
		Release.AspNetCompiler.PhysicalPath = "MapperTestSite\"
		Release.AspNetCompiler.TargetPath = "PrecompiledWeb\MapperTestSite\"
		Release.AspNetCompiler.Updateable = "true"
		Release.AspNetCompiler.ForceOverwrite = "true"
		Release.AspNetCompiler.FixedNames = "false"
		Release.AspNetCompiler.Debug = "False"
		VWDPort = "20193"
		DefaultWebSiteLanguage = "Visual C#"
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{A407090B-E706-431A-AA21-C1F83BCFB6ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{A407090B-E706-431A-AA21-C1F83BCFB6ED}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{A407090B-E706-431A-AA21-C1F83BCFB6ED}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{A407090B-E706-431A-AA21-C1F83BCFB6ED}.Release|Any CPU.Build.0 = Release|Any CPU
		{EB4FE994-2FB2-4C1B-A3FF-F1DAC75D95ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{EB4FE994-2FB2-4C1B-A3FF-F1DAC75D95ED}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{EB4FE994-2FB2-4C1B-A3FF-F1DAC75D95ED}.Release|Any CPU.ActiveCfg = Debug|Any CPU
		{EB4FE994-2FB2-4C1B-A3FF-F1DAC75D95ED}.Release|Any CPU.Build.0 = Debug|Any CPU
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE

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.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Matt Perdeck
Australia Australia
Twitter: @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 ( 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 and

You may also be interested in...

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web06 | 2.8.181215.1 | Last Updated 14 Jun 2011
Article Copyright 2011 by Matt Perdeck
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid