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

Home » Public Forums » archive » Object graphics bug?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Object graphics bug? [message #9421] Fri, 27 June 1997 00:00 Go to previous message
Patrick Jones is currently offline  Patrick Jones
Messages: 1
Registered: June 1997
Junior Member
I am using IDL 5.0 on Win95.

I have been unable to get an image object to display in a window object.

Case 1: I have a 512x512 byte array called theImage, which holds image
data from a single-band file. The array displays properly using direct
graphics (tv, theImage). But when I try to display the image using
object graphics (following the example on p. 102 of the Objects manual),
my window remains completely black.

Case 2: Thinking that I have screwed up the object definitions, I follow
the 'rose.jpg' example on p. 102 to the letter. Still the image does
not display using object graphics (although tv, theImage[0,*,*]
correctly
displays the red 'band' of the image).

case 3: Thinking that the image object is at fault, I follow, to the
letter, the example "A Very Simple Plot", on p. 40 of the Objects
manual.
This also fails to display.

Is anyone else having this problem? I really don't think that I'm
making
any mistakes.


Example of problem code:

; myImage is a 512x512 byte array that displays correctly with tv

myWindow = obj_new('IDLgrWindow', dimensions=[512,512])
myView = obj_new('IDLgrView', view=[0,0,512,512])
myModel = obj_new('IDLgrModel')
myImage = obj_new('IDLgrImage', imageData)

myView->add, myModel
myModel->add, myImage
myWindow->draw, myView ; this fails; no image is displayed

tv, myImage ; this displays properly

Thanks in advance for help.

Pat Jones
--
Department of Anthropology
Tulane University
NO LA 70118
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: problem with program code area full in VMS IDL 4.0.1
Next Topic: 8 bit binary images

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

Current Time: Wed Oct 08 17:00:23 PDT 2025

Total time taken to generate the page: 0.00399 seconds