diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-12-10 06:56:23 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-12-10 06:57:04 +1100 |
commit | 4e27152046e80c7f4b676920727a1130c83559bb (patch) | |
tree | 36fa88abfc4f850dd6c6d44f5c89e0412f11bfc5 /vcl/README.GDIMetaFile | |
parent | b089c1091dcd854ad83152ebf602a9a8e32485d6 (diff) |
vcl: update REAME.GDIMetaFile
Change-Id: Ica56b6b07f8fc521882d15c1bf95cc6c162b4fd1
Diffstat (limited to 'vcl/README.GDIMetaFile')
-rw-r--r-- | vcl/README.GDIMetaFile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/vcl/README.GDIMetaFile b/vcl/README.GDIMetaFile index b7282a31a5d8..f594885fbdf6 100644 --- a/vcl/README.GDIMetaFile +++ b/vcl/README.GDIMetaFile @@ -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); } |