|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Chapters
Services
Feature Zones
|
IntroductionDerived from the MFC class UsageBOOL Create(CSize &pImageSize);As with many MFC classes, BOOL SaveAsPNG(
CString &pFileName,
BOOL pInterlaced = TRUE,
BOOL pTransparent = FALSE,
COLORREF pTransparentColor = RGB(255,255,255));
Saves the bitmap in PNG format to the file specified in the BOOL StreamAsPNG(
CMemFile * pMemFile,
BOOL pInterlaced = TRUE,
BOOL pTransparent = FALSE,
COLORREF pTransparentColor = RGB(255,255,255));
Writes the bitmap in PNG format to the void Erase(COLORREF pColor);Fills the entire bitmap with the color specified. Sample
The bar chart above was generated using the Usage:The plug-in is used as follows: <img src="/scripts/bar.dll?Draw¶meters ">
where parameters have the form: ww,hh,bc,dc,rr,vv,ss,sn,sc...
The parameters are as follows:
Note: colors are in the form RRGGBB in hex from 00 to FF Example: <img src="/scripts/bar.dll?Draw&30,300,FFFFFF,
0000FF,Oct,40.0,36,3,20,00FF00,26,FFFF00,30,FF000">
would result in the following:
A series of these can easily be used to generate a bar chart like the one shown earlier, within an ASP page. AcknowledgementsThis class uses the PNG and ZLIB libraries provided by the PNG Working Group and the HIPNG provided by Alan Algustyniak. Thanks very much for the great libraries.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||