Click here to Skip to main content
15,896,444 members
Articles / Multimedia / GDI+

Crossing the bridge between Ghostscript and GDI+

Rate me:
Please Sign up or sign in to vote.
4.91/5 (32 votes)
1 Dec 20027 min read 356.2K   3.2K   73  
A C++ wrapper for the Ghostscript DLL that enables to render PS directly to GDI+ Bitmap
// GhostTutorial.h : main header file for the GHOSTTUTORIAL application
//

#if !defined(AFX_GHOSTTUTORIAL_H__186B9405_3947_422F_BDF8_87452EFDB125__INCLUDED_)
#define AFX_GHOSTTUTORIAL_H__186B9405_3947_422F_BDF8_87452EFDB125__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"		// main symbols

/////////////////////////////////////////////////////////////////////////////
// CGhostTutorialApp:
// See GhostTutorial.cpp for the implementation of this class
//

class CGhostTutorialApp : public CWinApp
{
public:
	CGhostTutorialApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGhostTutorialApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation

	//{{AFX_MSG(CGhostTutorialApp)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GHOSTTUTORIAL_H__186B9405_3947_422F_BDF8_87452EFDB125__INCLUDED_)

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.

License

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


Written By
Engineer
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 (http://research.microsoft.com/pex).

Comments and Discussions