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

Home » Public Forums » archive » Texture filled polygons in the new Graphics environment
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
Texture filled polygons in the new Graphics environment [message #72351] Fri, 27 August 2010 09:39 Go to next message
Stian Solbø is currently offline  Stian Solbø
Messages: 2
Registered: August 2010
Junior Member
Does anyone in here know if there is a way to let new POLYGON function
(or similar) in IDL8 produce polygons overlays filled with texture
patterns. Or more precisely, filled with warped images like the old
POLYFILL procedure.

I have started to transfer my GUI routines from direct graphics to the
new Graphics system, and suddenly my whole application lost that
authentic 1994 look and feel. And I guess, by the time I finish, the
user friendlyness should have increased by an order of magnitude. :)

Please tell me that I do not have to teach my self the "old" object
graphics stuff, and write everything from scratch.

Best Regards,
Stian Solbø
Re: Texture filled polygons in the new Graphics environment [message #72398 is a reply to message #72351] Wed, 01 September 2010 04:59 Go to previous message
Stian Solbø is currently offline  Stian Solbø
Messages: 2
Registered: August 2010
Junior Member
The solution to this problem is found, thanks to Jim Pendelton and his
insight into object graphics and UNDOCUMENTED features of the new
graphics system.
The following example will produce a texture filled polygon:

p = plot([0, 1], [0, 1])
poly = polygon([0.1, 0.9, 0.8, 0], [0.2, 0.1, 0.9, 0.7], color = [255,
255, 255], style =2, /data)
poly.texture_coord =[[0,0],[1,0],[1,1],[0,1],[0,0]]
poly.texture_map = IDLgrImage(bytscl(dist(256)))

I hope this information can be helpful to others.

Best Regards,
Stian Solbø

On Aug 27, 6:39 pm, Stian Solbø <stian.so...@norut.no> wrote:
> Does anyone in here know if there is a way to let new POLYGON function
> (or similar) in IDL8 produce polygons overlays filled with texture
> patterns. Or more precisely, filled with warped images like the old
> POLYFILL procedure.
>
> I have started to transfer my GUI routines from direct graphics to the
> new Graphics system, and suddenly my whole application lost that
> authentic 1994 look and feel. And I guess, by the time I finish, the
> user friendlyness should have increased by an order of magnitude. :)
>
> Please tell me that I do not have to teach my self the "old" object
> graphics stuff, and write everything from scratch.
>
> Best Regards,
> Stian Solbø
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: multi plot with superposed axis
Next Topic: iTools ISV problem

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

Current Time: Wed Oct 08 11:39:59 PDT 2025

Total time taken to generate the page: 0.00583 seconds