[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
QRe: Mapping float values to colors.
From: |
M. Lang / S. Railsback |
Subject: |
QRe: Mapping float values to colors. |
Date: |
Tue, 27 Jul 1999 18:50:56 -0700 |
Marcus G. Daniels wrote:
> 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]];
>
Marcus, would this last line possibly help with our raster that blows up
if the width doesn't equal the height? (Not only in Microsoft!).
I.e., are you saying that setting the width and height by:
[raster setWidth: [self getWidth] Height: [self getHeight]];
is mysteriously better than:
[raster setWidth: myWidth Height: myHeight]];
?
Steve
--
address@hidden
Lang, Railsback & Assoc.
250 California Ave., Arcata CA 95521
707-822-0453; Fax 822-1868
==================================
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.
- Mapping float values to colors., Fabio Mascelloni, 1999/07/27
- Re: Mapping float values to colors., Fabio Mascelloni, 1999/07/27
- Re: Mapping float values to colors., Marcus G. Daniels, 1999/07/27
- *gdb* crashes when attempting to debug swarm app, Jason Alexander, 1999/07/27
- Re: *gdb* crashes when attempting to debug swarm app, Norberto Eiji Nawa, 1999/07/27
- Re: *gdb* crashes when attempting to debug swarm app, Marcus G. Daniels, 1999/07/27
- Re: *gdb* crashes when attempting to debug swarm app, Paul E. Johnson, 1999/07/28
- Re: Mapping float values to colors., Fabio Mascelloni, 1999/07/28
- Re: Mapping float values to colors., Marcus G. Daniels, 1999/07/28
- Re: Mapping float values to colors., Fabio Mascelloni, 1999/07/29
- Re: Mapping float values to colors., Marcus G. Daniels, 1999/07/29
- Re: Mapping float values to colors., Ken Cline, 1999/07/29