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

Home » Public Forums » archive » Re: 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
Re: Polyfill with pattern? [message #12901] Tue, 15 September 1998 00:00
rmlongfield is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Was: xwindows colour issues
Next Topic: trinagle plots in IDL

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

Current Time: Fri Oct 10 10:25:32 PDT 2025

Total time taken to generate the page: 0.00724 seconds