Help with WMF (Windows Metafile Format) and the ST/V Graphics Model 
Author Message
 Help with WMF (Windows Metafile Format) and the ST/V Graphics Model

Hello,
can anyone give me infos how to convert a WMF-File (Windows Metafile Format)
into Smalltalk/V (Digitalk)?
Are there any classes to interpret WMF and convert
it into the graphics interface classes of Smalltalk/V (public domain,
commercial)?

Any info, e-mailed or posted would be greatly appreciated.

Thanks in advance,

Gernot

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

Gernot Wagner                           Tel.: +49-9131-22158
Siemens AG                              Fax:  +49-9131-22202

Werner von Siemens Str. 50
91052 Erlangen,Germany

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



Mon, 08 Jul 1996 22:03:33 GMT  
 Help with WMF (Windows Metafile Format) and the ST/V Graphics Model
Well, a windows metafile can definitely be used in Smalltalk -the class
RecordingPen
uses a metafile to save its results. I would look to the Windows SDK helpfile
for a description
fo the format of a metafile and its API. The Windows API does contain
iterators for
metafiles that allow you to iterate through a source metafile, writing out the
metafile
records you want to a second metafile, which is a primitive way of editing it.
Personally, if I was doing anything serious with metafiles, I would use that
feature to
import all of the GDI primitives into some internal Smalltalk format - perhaps
a
hierarchy of classes corresponding to the GDI commands - and edit that
representation.
When done editing, then I would write it back out to a metafile. Trying to
edit the windows
metafile directly would be too slow, given that I can't find any editing
primitives in the SDK.

hope this helps,
        rob
***************************************************************************
Symmetrix, Inc     Lexington, MA 02173
***************************************************************************



Tue, 09 Jul 1996 01:18:30 GMT  
 Help with WMF (Windows Metafile Format) and the ST/V Graphics Model

Quote:

>Hello,
>can anyone give me infos how to convert a WMF-File (Windows Metafile Format)
>into Smalltalk/V (Digitalk)?

Yes; see below.  Caveat: I haven't tried any of what I will discuss.

Quote:
>Are there any classes to interpret WMF and convert
>it into the graphics interface classes of Smalltalk/V (public domain,
>commercial)?

My comments pertain to Smalltalk/V for Win32 (2.0).

According to how I read my manual, you don't need any additional
software; the Smalltalk environment itself seems to contain just what
you need.  The class StoredPicture seems to do just what you want.
Here's an excerpt from the manual:

StorePicture

    StoredPicture is used to store a sequence of graphics operations in
an object called a _metafile_.  After creation in memory or reloading
from a saved external file, the metafile can be connected to a graphics
tool to replay all the recorded graphics or its handle can be placed on
a clipboard to be replayed by other tasks on the same workstation.  The
following sequence shows how a metafile is used:

    |meta|
    meta := StoredPicture new.
    meta create: nil.           "Create a memory metafile."
    meta                        "Draw to the metafile."


    meta close.                 "At this point, you can place
                                the metafile handle on the
                                clipboard for other tasks to use."
    meta save: 'test.met'       "Save the metafile to disk."
    meta load: 'test.met'       "Load the metafile from disk."
    Window turtleWindow: 'test'.
    meta play: Turtle.          "Play the metafile through
                                the Turtle pen."
    meta release                "Release the memory associated
                                with the metafile."

Chris
--


PO Box 655012  M/S 3635
Dallas, TX 75265               Voice:   (214) 917-0332



Tue, 09 Jul 1996 10:56:31 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Nelco's Metafiles - Placeable Metafile Format .pmf - (Enhanced Metafile)

2. Windows MetaFile (WMF) support for Dolphin

3. Problem with Windows metafiles (WMF) on Print Preview

4. Does PIL still support wmf graphics format?

5. Windows metafiles in ST/V

6. ST vs Java vs ST vs ....

7. ST-80/OS/2 vs. ST-80/Windows

8. VO vs DELPHI vs FOXPRO(Windows) vs DBASE(Windows)

9. Help: Can t release Windows GDI resources (ST/V Windows)

10. PGPLOT: best graphic format to windows

11. PGPLOT: best graphic format to windows (fwd)

12. GPF with WMF and certain graphic cards?

 

 
Powered by phpBB® Forum Software