• Welcome to Vampyre Imaging Library Forum. Please login or sign up.
 

Get DPI

Started by skar, 9 June 2010, 10:50:06

Previous topic - Next topic

skar

how i can get the dpi of a image?

Galfar

First you need the current sources from SVN repository.
Then you can use this code:

var
  XRes, YRes: Single;
begin
  ... load image
  if GlobalMetadata.GetPhysicalPixelSize(ruDpi, XRes, YRes) then
      ... do something with DPI info
 

If GetPhysicalPixelSize returns False that means no DPI info was present in the last loaded image. Also note that currently DPI info is read only from JPEG, PNG, and TIFF images.

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Name:
Email:

Shortcuts: ALT+S save/post or ALT+P preview

SMF spam blocked by CleanTalk