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

Home » Public Forums » archive » Last try for iTools colorbar
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
Last try for iTools colorbar [message #60214] Sat, 03 May 2008 09:25
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
So I thought to try one last thing before giving up on adding a colorbar
to my iTool plot: create the colorbar as an image in direct graphics,
then load the image into the annotation layer of my iTool.

The code below definitely adds an image object to the iTool annotation
layer, but nothing is visible except object handles around a tiny object,
despite a couple of hours of trial-and-error tinkering with keywords for
IDLitVisImage. This ought to be a simple thing, but, as usual, I'm stumped.

Without a colorbar I can make art with iTools, but not scientific
graphics.

Anyone know how to put an image into the annotation layer?

Ken Bowman







PRO IMAGE_TEST2

ISURFACE, DIST(100), DIMENSIONS = [640, 480]

image = READ_PNG('test.png')
HELP, image

itool_id = itGetCurrent(TOOL = itool_obj)
annotation_layer_id = itool_obj -> FindIdentifiers('*/ANNOTATION LAYER')
annotation_layer_obj = itool_obj -> getByIdentifier(annotation_layer_id)
annotation_layer_obj -> add, OBJ_NEW('IDLitVisImage', DATA = image)

END
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Multiple integral in IDL?
Next Topic: IDL FFTW3 DLM RIP

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

Current Time: Fri Oct 10 19:35:38 PDT 2025

Total time taken to generate the page: 1.36158 seconds