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

Home » Public Forums » archive » PPM image from IDLgrBuffer: top-bottom order
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
PPM image from IDLgrBuffer: top-bottom order [message #30423] Wed, 24 April 2002 14:34
Sean Dettrick is currently offline  Sean Dettrick
Messages: 12
Registered: April 2002
Junior Member
Hi,

I'm trying to draw my view object to a PPM image file,
so that I can then do FLIC animation via ppm2fli.

In direct graphics it's easy to do this with:
wset,window_number
image = tvrd(true=1,/order)
write_ppm,'name.ppm',image
where top-bottom order is reversed to give an upside-up
PPM image.

In object graphics, I am stumped again. I've tried two
methods, but both times get an upside-down PPM, and
can't see a way to use /ORDER to fix the problem:

1) make image object from Buffer object:

; starting with this line obviously didn't help:
; image_obj=Obj_New('IDLgrImage',/order)

buffer=Obj_New('IDLgrBuffer',graphics_tree=thisView,$
dimensi=[400,400])
buffer-> Draw
image_obj = buffer -> Read()
image_obj -> SetProperty, /order ;; <- doesn't help!
image_obj -> GetProperty, data=image_dat
write_ppm,'name.ppm',image_dat

2) take image data direct from buffer object:

buffer=Obj_New('IDLgrBuffer',graphics_tree=thisView,$
dimensi=[400,400])
buffer -> Draw
buffer -> GetProperty, image_data=image_dat
write_ppm,'name.ppm',image_dat

By the way, there doesn't seem to be an option in ppm2fli
to automatically flip the input images.

Any advice greatly appreciated!

Thanks,
Sean Dettrick
Physics Dept,
UC Irvine
[Message index]
 
Read Message
Previous Topic: Re: semi-transparent IDLgrPolygon? alpha blending no good...
Next Topic: not sure what to call this request

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

Current Time: Wed Oct 08 18:36:31 PDT 2025

Total time taken to generate the page: 0.00643 seconds