POV-Ray : Newsgroups : povray.general : size of source image Server Time
16 Nov 2024 21:12:45 EST (-0500)
  size of source image (Message 1 to 3 of 3)  
From: Kreiger
Subject: size of source image
Date: 21 Aug 2003 10:55:01
Message: <web.3f44dc93ceb64eb49c1aba10@news.povray.org>
I have been using Doug Eichenberg's image macros to read the color data
from a pigment(source image file).

Is there any way for POV to report the size of a source image file?

In other words I have an image that I want to read in to Pov and use as a
pigment, but I want to know the width and height of it.

Thanks for any help.


Post a reply to this message

From: Warp
Subject: Re: size of source image
Date: 21 Aug 2003 11:02:03
Message: <3f44deea@news.povray.org>
Kreiger <nomail@nomail> wrote:
> Is there any way for POV to report the size of a source image file?

  Unfortunately there's no way of doing it. You will need to look at
the dimensions of the image with a separate program (if you don't know
it) and use these dimensions directly in your pov-code.

  Perhaps in the distant future...

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: ABX
Subject: Re: size of source image
Date: 21 Aug 2003 11:13:55
Message: <e8o9kv071ms8h4pmpq5ron8mumeln80o06@4ax.com>
On Thu, 21 Aug 2003 10:53:48 EDT, "Kreiger" <nomail@nomail> wrote:
> I have been using Doug Eichenberg's image macros to read the color data
> from a pigment(source image file).
> Is there any way for POV to report the size of a source image file?
> In other words I have an image that I want to read in to Pov and use as a
> pigment, but I want to know the width and height of it.

There is not such a thing in POV-Ray but this feature is already implemented
for next MegaPOV.

ABX


Post a reply to this message

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