Polyfill with pattern? [message #12907] |
Mon, 14 September 1998 00:00 |
seanr
Messages: 10 Registered: August 1998
|
Junior Member |
|
|
Hello again all:
I'm currently having a problem with polyfill using the pattern keyword. In the
example code below, which was taken from the IDL help example for polyfill,a
white screen using device coordinates. The result *should* have created a grid
of dots on the window:
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=PATI get just a blank screen with the
example as is, and
Why does this not work for me?
------------------------------------------------------------ ----------
Sean P. Rumelhart Positive Systems, Inc.
seanr@possys.com 250 Second St. East
PH: 406.862.7745 Whitefish MT 59937
FAX: 406.862.7759 www.possys.com
------------------------------------------------------------ ----------
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
|
|
|