Re: Polyfill with pattern? [message #12901] |
Tue, 15 September 1998 00:00 |
rmlongfield
Messages: 68 Registered: August 1998
|
Member |
|
|
In article <6tji79$7np$1@nnrp1.dejanews.com>,
seanr@possys.com wrote:
> Hello again all:
>
> I'm currently having a problem with polyfill using the pattern keyword.
Using the code below on an SGI wit IDLv5.0, I get one blank, black window and
one black window with lots of little white dots. It seems to work on this
machine.
Rose
---------------------code ------------------------------------
pro test
xsize = 512
ysize = 512
window, 0, xsize=xsize, ysize=ysize
PAT = BYTARR(10,10) ;Define pattern array as 10 by 10.
PAT(5,5) = 255 ;Set center pixel to bright. POLYFILL, !X.WINDOW([0,1,1,0]),
$ !Y.WINDOW([0,0,1,1]), $ /NORM, PAT = PAT ;Fill the rectangle defined by
the four corners of ; the window with the
pattern. window, 1, xsize=xsize, ysize=ysize POLYFILL, [0,xsize-1,xsize-1,0],
[0,0,ysize-1,ysize-1], $ /DEVICE, PAT=PAT end
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
|
|
|