title: How can I create CSS sprites from images stored in the database?
body: <p>I have an ASHX handler that I am using to display images that are stored in a database.  I display the images as thumbnails and then full size if the user mouses over them.  </p>
  
  <p>How can I combine the images at runtime to produce CSS sprites for use in this situation?</p>
  
  <p>If it can be done does anyone have suggestions on where to start?</p>
  
  <p><strong>UPATE</strong></p>
  
  <p>It seems like most people are saying this is not a good situation to use sprites in.  I'm new to the sprite concept so please bear with me.</p>
  
  <p>If I am going to be loading 30 thumbnails on a page from my database everytime why would it not make sense to pass them from the server to the client as one large image instead of passing 30 individual images?  Wouldn't this be faster?  Isn't this the purpose of CSS Sprites?</p>