swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mapping float values to colors.


From: Marcus G. Daniels
Subject: Re: Mapping float values to colors.
Date: 27 Jul 1999 18:10:43 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "FM" == Fabio Mascelloni <address@hidden> writes:

FM> It gives a STATUS_ACCESS_VIOLATION and gdb stops saying;

FM> Program received signal SIGSEV ,Segmentation fault
FM> 0x421ab0 in dib_augmentPalette (dib=0x29bb4d8 , object=0x29b6fe0,
FM>                                                     colormapSize=64 ,

You're using a Microsoft product and were anticipating *correct* behavior? :-)

The addition of the last line should do the trick.  The Swarm 2.0 release
won't require this magic, and will have an unsetColor: method as well.

  colormap = [Colormap create: [self getZone]];
  [colormap setColor: 1 ToName: "orange"];  // multiple colors, whatever...
  [raster setColormap: colormap];
  [raster setWidth: [self getWidth] Height: [self getHeight]];


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]