|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Chapters
Services
Feature Zones
|
Note: This is an unedited contribution. If this article is inappropriate,
needs attention or copies someone else's work without reference then please
Report This Article
Introduction
The chart uses GDI+ to compose an image and stream it out to the browser. Using the codeFor the purposes of portability, I've separated the chart into two parts. jThermometer is a class that creates a bitmap using GDI+ and streams it out to the current request as a GIF image. Thermometer.aspx is a web page that accepts various parameters controlling the appearance of the Thermometer chart and that can be referenced by an <IMG> tag on another web page. Thermometer.aspx uses these querystring values:
Further workAt present, the thermometer does not scale. I'd like to have it automatically scale based on user-provided dimensions. There are also a lot of appearence-related aspects that should be controlable via properties such as text color, indicator color and the color of the mercury.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||