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 #28591 is a reply to message #28201] |
Wed, 08 September 2010 09:17 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
koldo wrote on Sun, 22 August 2010 17:51 | Hello Mirek
I mean now there are no methods to set or get the vertical or horizontal dpi of an image.
|
But there are are!
Raster::GetInfo returns Info, which in turn has "dots" member, which is physical size of image (in dots).
Combine with "GetSize" and you get dpi information.
The other way is RasterEncoder::SetDots. (Again, combined with SetSize, you have dpi info).
The only issue is that plugins might be lacking the support of this information.
Well, now thinking, perhaps we could add Raster::GetDpi a RasterEncoder::SetDpi methods, but that would only be very oneliners/helpers. Plus, SetDpi would need Create to be called first. Hm, perhaps there should be alternate Create with dpi info.
Anyway, these would really be just helpers. The basic info and interface is already there!
Mirek
|
|
|
|
|
How to set the dpi (dots per inch) of an image
By: koldo on Thu, 15 July 2010 11:07
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: mirek on Sat, 17 July 2010 09:58
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: koldo on Mon, 19 July 2010 10:03
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: mirek on Fri, 23 July 2010 11:37
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: koldo on Sat, 24 July 2010 11:08
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: koldo on Mon, 26 July 2010 09:50
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: mirek on Fri, 13 August 2010 11:13
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: koldo on Fri, 13 August 2010 13:46
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: koldo on Sun, 22 August 2010 23:51
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: mirek on Wed, 08 September 2010 09:17
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: koldo on Fri, 10 September 2010 11:41
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: koldo on Fri, 10 September 2010 13:42
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: mirek on Mon, 13 September 2010 17:33
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: koldo on Mon, 13 September 2010 21:56
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: koldo on Tue, 14 September 2010 09:51
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: koldo on Wed, 15 September 2010 09:17
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: koldo on Wed, 15 September 2010 13:38
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: koldo on Wed, 15 September 2010 15:02
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: mirek on Thu, 16 September 2010 23:49
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: koldo on Fri, 17 September 2010 09:58
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: koldo on Fri, 17 September 2010 10:39
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: mirek on Fri, 17 September 2010 20:17
|
|
|
Re: How to set the dpi (dots per inch) of an image
By: koldo on Fri, 17 September 2010 22:29
|
Goto Forum:
Current Time: Thu Mar 28 18:31:14 CET 2024
Total time taken to generate the page: 0.01157 seconds
|