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

Home » Public Forums » archive » Re: Centering Image
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Centering Image [message #67083] Tue, 23 June 2009 11:24 Go to previous message
vikramivatury is currently offline  vikramivatury
Messages: 24
Registered: May 2009
Junior Member
On Jun 23, 3:55 am, Phil Elson <philipel...@googlemail.com> wrote:
> You mean something like this?
>
> image=INDGEN(100,50)
> dims=SIZE(image,/DIM)
> screen_size=[!D.X_SIZE,!D.Y_SIZE]
> pos=(screen_size-dims)/2
> TVSCL, image, pos[0], pos[1]

Yes, that is exactly what I was looking for. Thanks Phil!

-Vikram
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL object graphics code logs me out?!
Next Topic: Re: Catalyst CatDestroyDefaults

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

Current Time: Thu Oct 09 07:23:23 PDT 2025

Total time taken to generate the page: 0.47835 seconds