  | 
  | 
 | 
  | 
 | 
  | 
 |   | 
 |   | 
 | 
  | 
 | 
  | 
 |   | 
 |   | 
 | 
  | 
Is there any way to set the rendered image width and height (in pixels) from
inside a .pov file?
Failing that, can one access in a read-only way the image width and height (set
by Wxxx, +Hxxx at the command line) in the .pov file?
Cheers,
-Chris
 
 Post a reply to this message 
 | 
  | 
 |   | 
 |   | 
 | 
  | 
From: Warp 
Subject: Re: Setting image width and height from .pov file 
Date: 14 Apr 2010 07:42:09 
Message: <4bc5aa11@news.povray.org> 
 | 
 
 
 | 
  | 
 |   | 
 |   | 
 | 
  | 
Chris <chr### [at] abingdon org uk> wrote:
> Is there any way to set the rendered image width and height (in pixels) from
> inside a .pov file?
  No.
> Failing that, can one access in a read-only way the image width and height (set
> by Wxxx, +Hxxx at the command line) in the .pov file?
  image_width and image_height keywords.
-- 
                                                          - Warp
 
 Post a reply to this message 
 | 
  | 
 |   | 
 |   | 
 | 
  | 
From: Doctor John 
Subject: Re: Setting image width and height from .pov file 
Date: 14 Apr 2010 07:48:39 
Message: <4bc5ab97@news.povray.org> 
 | 
 
 
 | 
  | 
 |   | 
 |   | 
 | 
  | 
Chris wrote:
> Is there any way to set the rendered image width and height (in pixels) from
> inside a .pov file?
Not that I know of :-(
> Failing that, can one access in a read-only way the image width and height (set
> by Wxxx, +Hxxx at the command line) in the .pov file?
> 
Do you mean the image_height and image_width keywords? You can use those
for just about anything. e.g.
#if (image_height>600)
do something
#else
do something different
#end
John
-- 
Cogito sum,|| wbu### [at] tznvy pbz (rot'ed) || GPG Key Fingerprint:
ergo sum,  ||   These opinions are mine alone,   || 0D9BCF4CF1B71CA2F5F7
cogito     ||     others can find their own      || BFBBCBC34EDEAEFCE453
 
 Post a reply to this message 
 | 
  | 
 |   | 
 |   | 
 | 
  | 
 | 
  | 
 |   | 
 |   | 
 | 
  | 
Thanks guys.
-Chris
 
 Post a reply to this message 
 | 
  | 
 |   | 
 |   | 
 | 
  | 
 | 
  | 
 |   |