POV-Ray : Newsgroups : povray.general : Setting image width and height from .pov file : Re: Setting image width and height from .pov file Server Time
30 Jul 2024 00:29:26 EDT (-0400)
  Re: Setting image width and height from .pov file  
From: Doctor John
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] tznvypbz (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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.