Click here to Skip to main content
13,344,508 members (50,382 online)
Click here to Skip to main content
Articles » Multimedia » GDI+ » General » Downloads


25 bookmarked
Posted 1 Oct 2002

Dynamically generating images in ISAPI extension using GDI+ with live demo

, 3 Oct 2002
A class wrapper to write GDI+ images to the client browser using an ISAPI extension.
#pragma once

class CGdipExample
	CGdipExample(CHttpServer* pServer = NULL, CHttpServerContext* pCtxt = NULL, LPCTSTR szImageType = _T("png"), int iWidth = 480, int iHeight = 300)
		: m_pServer(pServer), m_pCtxt(pCtxt), m_sImageType(szImageType)
	{ SetSize(iWidth, iHeight);};

	void SetSize(int iWidth,int iHeight);
	void Render();
	void DrawStuff(Gdiplus::Image& image);

	CSize m_size;
	CString m_sImageType;
	CHttpServer* m_pServer;
	CHttpServerContext* m_pCtxt;
	CMutex m_mutex;

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Jonathan de Halleux
United States United States
Jonathan de Halleux is Civil Engineer in Applied Mathematics. He finished his PhD in 2004 in the rainy country of Belgium. After 2 years in the Common Language Runtime (i.e. .net), he is now working at Microsoft Research on Pex (

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.180111.1 | Last Updated 4 Oct 2002
Article Copyright 2002 by Jonathan de Halleux
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid