🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #1543

(none)

#1543
From: Ted Larson
Date: Thu, 27 Jun 1991 18:02
50 lines
2040 bytes
       Is there a problem with the graphics libraries,
       or am I doing something wrong?  I get include file
       errors to the effect of:

"/interviews/include/InterViews/2.6/InterViews/Graphic/base.h", line 150: error: two initializers for Graphic::transform() argument ?
"/interviews/include/InterViews/2.6/InterViews/Graphic/base.h", line 235: error:  Graphic::transform() cannot be redeclared in class declaration

.....and so on.


    when I compile the following code.  All I am trying to do is
    read a raster image from a file and display it to a window.
    If you know a better way to do this, please let me know.
    Also, has anyone had any success in getting a viewer to work?
    If so, please mail me some sample source. It would be much
    appreciated. 

                    - Ted   larson@lanl.gov


----------------------------------------------------------------
#include <InterViews/world.h>
#include <InterViews/raster.h>
#include <InterViews/Graphic/rasterrect.h>
#include <InterViews/Graphic/stencil.h>
#include <InterViews/box.h>
#include <InterViews/window.h>

static PropertyData properties[] = {
   {nil}
};

static OptionDesc options[] = {
   { nil }
};

void main(int argc, char** argv) {

    World world = new World("****", argc, argv, options, properties);

    Color* fg = world.foreground();	        	 
    Color* bg = world.background();	        	 
    		    			        	 
    Glyph* r = new RasterRect(Raster::open("rimage.ras"), fg);

    Window* w = new ApplicationWindow(r);
    w->map();
    world.run();
}
Technical Details
Message-ID: <9106271802.AA12766@tahiti.lanl.gov>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!uunet!stanford.edu!TAHITI.LANL.GOV!larson

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!uunet!stanford.edu!TAHITI.LANL.GOV!larson
From: larson@TAHITI.LANL.GOV (Ted Larson)
Newsgroups: comp.windows.interviews
Subject: (none)
Message-ID: <9106271802.AA12766@tahiti.lanl.gov>
Date: 27 Jun 91 18:02:14 GMT
Sender: news@shelby.stanford.edu (USENET News System)
Organization: Internet-USENET Gateway at Stanford University
Lines: 50