Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Last try for iT...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 5703 of 5741
Post > Topic >>

Last try for iTools colorbar

by "Kenneth P. Bowman" <k-bowman@[EMAIL PROTECTED] > May 3, 2008 at 10:25 AM

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




 1 Posts in Topic:
Last try for iTools colorbar
"Kenneth P. Bowman&q  2008-05-03 10:25:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 12:43:22 CDT 2008.