Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » How to set the dpi (dots per inch) of an image
Re: How to set the dpi (dots per inch) of an image [message #28670 is a reply to message #28668] Fri, 10 September 2010 13:42 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3360
Registered: August 2008
Senior Veteran
koldo wrote on Fri, 10 September 2010 11:41

Hello Mirek

Quote:

Raster::GetInfo returns Info, which in turn has "dots" member, which is physical size of image (in dots).


Perhaps instead of in "dots" do you mean in meters?. This way info.dots would be the physical image Size in meters.


Hello Mirek

I have seen that in U++ a dot is 1/600 of a pixel.

Now U++ stores for an image the Size in pixels and in dots.

This cause problems as if I rescale an image or set a new image with part of other, the Size in dots is lost or remains the same, so the image really has badly changed its resolution Sad.

Really if an image is scanned, the size in dots and in pixels is the same... The only thing that is different is the size of the dot in inches or meters.

Would not be better to store image Size in pixels and resolution in dpi or dpm?. This way if we process an ImageBuffer, the size will change but the resolution will remain (but if we explicitly want to change it)


Best regards
IƱaki

[Updated on: Fri, 10 September 2010 13:52]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Icon at right side of the menuBar
Next Topic: GetExifThumbnail doc
Goto Forum:
  


Current Time: Wed May 08 01:32:32 CEST 2024

Total time taken to generate the page: 0.02845 seconds