|
From: | Doug Donalson |
Subject: | Help with Raster, please? |
Date: | Wed, 1 Dec 1999 12:02:02 -0800 |
I want a simple 2D display that I can draw on. It
looked like Raster might work so I decided to play around with it. (You
never can tell when you might need to draw an elipse.)
I defined it as:
id <Raster> scamDisplay; Then I created it, with the colormap as so: colormap = [Colormap create: [self getZone]]; for (i = 0; i < 16; i++) [colormap setColor: i ToRed: (double)i / 15.0 Green: 0 Blue: 0]; [colormap setColor: 16 ToRed: 0 Green: 1 Blue: 0]; [colormap setColor: 17 ToRed: 0 Green: 0 Blue: 1]; [colormap setColor: 18 ToGrey: 10]; scamDisplay=[Raster createBegin: self]; As soon as I try to set anything I get the following error (with trace attached): Program received signal SIGSEGV, Segmentation
fault. It does not seem to matter whether I do a "createEnd" first nor whether I set X and Y or try to set the color map. Any ideas, Cheers, D3 *********************************************************************
* Doug Donalson Office: (805) 893-2962 * Ecology, Evolution, Home: (805) 961-4447 * and Marine Biology email address@hidden * UC Santa Barbara * Santa Barbara Ca. 93106 ********************************************************************* * * The most exciting phrase to hear in science, the one that * heralds new discoveries, is not "EUREKA" (I have found it) but * "That's funny ...?" * * Isaac Asimov * ********************************************************************* |
[Prev in Thread] | Current Thread | [Next in Thread] |