Updated: 10/15/2007

Vote Image

This is a simple class that can be used to render an image that can represent the average of votes taken in a poll. It takes as parameters the total number of votes and the number of approval votes. The class generates an image that shows the proportion of approval votes relatively to the total number of votes. It uses an image to show the part that represents the approving votes, and another image to show the remaining votes. The images that it uses to render both parts are configurable.