comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Polyfill with pattern?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Polyfill with pattern? [message #12907] Mon, 14 September 1998 00:00
seanr is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: color postscript, colortables and TV
Next Topic: Re: call_external won't release dll

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:49:31 PDT 2025

Total time taken to generate the page: 0.00476 seconds