Article View: alt.lang.basic
Article #198VB: Graphics output to metafile / clipboard ?
From: Martin Hepperle
Date: Sat, 26 Sep 1992 16:32
Date: Sat, 26 Sep 1992 16:32
28 lines
1946 bytes
1946 bytes
I am using VB as standalone as well as a front end to FORTRAN (yes really!)
programs. I am doing lots of graphics, usually writing a graphics
metafile of my own format which is interpreted later by a C-program
which allows me to export a WMF file or put a picture into the clipboard,
zoom in and out and more.
What I a looking for is the possibility to create a metafile directly
from VB, using the standard grahics commands (e.g. Object.line (a,b)-(c,d)),
but all I can use to transfer graphics out from VB seems to be a Bitmap format.
Is there a VBX control available which takes the same commands as the
standard picture control, but can write a metafile to disk or give me
a handle to it so that I can copy it to the clipboard ?
It would be really easy to write such a control, if I had the source
to a picture control, just don't write to a memory DC, but to a metafile
DC.
Maybe a future version of VB would happen to contain such a thing
(maybe an additional property of the picture control) ?
Martin.
Martin J. Hepperle MMMMMMMMMMMMH HHH
Universitaet Stuttgart M MMM MMH HHH
Pfaffenwaldring 9 M MMM MMHHHHHHH
D-7000 Stuttgart 80 M MMM MMH HHH
Germany, Europe, World, Universe M MMM MMH HHH
PLEASE USE THIS RETURN ADDRESS ONLY:
martin@mecha2.verfahrenstechnik.uni-stuttgart.de
Technical Details
Message-ID:
<1992Sep26.163243.890@news.uni-stuttgart.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!dct.zrz.tu-berlin.de!zrz.tu-berlin.de!Sirius.dfn.de!news.uni-stuttgart.de!patricia!martinShow Full Headers
Complete Article Headers
Newsgroups: alt.lang.basic Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!dct.zrz.tu-berlin.de!zrz.tu-berlin.de!Sirius.dfn.de!news.uni-stuttgart.de!patricia!martin From: martin@patricia.verfahrenstechnik.uni-stuttgart.de (Martin Hepperle) Subject: VB: Graphics output to metafile / clipboard ? Message-ID: <1992Sep26.163243.890@news.uni-stuttgart.de> Sender: news@news.uni-stuttgart.de (USENET News System) Organization: Institute A for Mechanics, University of Stuttgart, Germany Date: Sat, 26 Sep 1992 16:32:43 GMT Lines: 28