Kaydet (Commit) 4e271520 authored tarafından Chris Sherlock's avatar Chris Sherlock

vcl: update REAME.GDIMetaFile

Change-Id: Ica56b6b07f8fc521882d15c1bf95cc6c162b4fd1
üst b089c109
......@@ -189,20 +189,19 @@ Basic pseudocode
----------------
The following illustrates an exceptionally basic and incomplete implementation of how to use
GDIMetafile (TODO: put this into a unit test, or a vcl demo app).
GDIMetafile. An example can be found at vcl/workben/mtfdemo.cxx
main()
DemoWin::Paint()
{
// assume that VCL has been initialized and a new application created
Window* pWin = new WorkWindow();
GDIMetaFile* pMtf = new GDIMetaFile();
ifstream aInFile;
aInFile.open("example.emf");
SvFileStream aFileStream("example.emf", STEAM_READ);
pMtf->Read(aInFile);
ReadWindowMetafile(aFileStream, pMtf);
pMtf->Play(pWin);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment