How do I get the resolution of an image accessed by a Player?

David Burgun dburgun at dsl.pipex.com
Mon Jul 18 07:17:02 EDT 2005


Hi,

I just need to display the current resolution with in the image (e.g 
the TIFF property), I am not going to change the DPI or use it to 
scale an image, it's just that we have the same images but with 
different resolutions and displaying the DPI of the underlying file 
is the best way to tell the difference.

Thanks a lot
Dave

>Hi Dave,
>
>Resolution depends on the ratio between the actual size and the 
>current size of the image.
>If the current size is the actual size, the resolution is 72 DPI 
>with most monitors.
>At half size 144 DPI, etc.
>With Rev objects all this does not make sense since I think Rev 
>recalculates all prints at 72 DPI when they are resized.
>All things change when you want to print a TIFF image from the 
>actual file by using the printer prefs. Then it works as above.
>But within Rev, you always get a 72 DPI resolution.
>I'm not a specialist of these things, others will correct me and 
>bring to you more precise information.
>It's just my two cents.
>
>Le 18 juil. 05 à 12:23, David Burgun a écrit :
>
>>I am open ing a TIFF file via a "player" object, I can get the 
>>Width and Height of the image with the "formattedWidth"/"Height" 
>>properties, but how can I get the resolution or DPI?
>
>Best Regards from Paris,
>
>Eric Chatonet.
>----------------------------------------------------------------
>So Smart Software
>
>For institutions, companies and associations
>Built-to-order applications: management, multimedia, internet, etc.
>Windows, Mac OS and Linux... With the French touch
>
>Free plugins and tutorials on my website
>----------------------------------------------------------------
>Web site        http://www.sosmartsoftware.com/
>Email        eric.chatonet at sosmartsoftware.com/
>Phone        33 (0)1 43 31 77 62
>Mobile        33 (0)6 20 74 50 86
>----------------------------------------------------------------
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your 
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list