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 #28747 is a reply to message #28731] |
Wed, 15 September 2010 09:17 |
|
koldo
Messages: 3357 Registered: August 2008
|
Senior Veteran |
|
|
Hello Mirek
Here I enclose you the changed files and changes list:
In Draw
Image.cpp and Image.h
Added
void ImageBuffer::SetDPI(Size dpi)
Size ImageBuffer::GetDPI()
Size Image::GetDPI()
RasterEncoder.cpp and Raster.h
Added in RasterEncoder
void SetDPI(Size sz);
Size GetDPI();
Modified in RasterEncoder
virtual void Start(Size sz, Size dots) = 0;
void Create(Size sz, Size dots);
void Create(int cx, int cy, Size dots)
void Create(Size sz, Size dots, const RGBA *palette);
void Create(int cx, int cy, Size dots, const RGBA *palette);
void Create(Size sz, Size dots, Raster& pal_raster);
void Create(int cx, int cy, Size dots, Raster& pal_raster);
virtual void Start(Size sz, Size dots);
In plugin/png
pngupp.cpp and png.h
Added
static void SetDotSize(Size pixel_size, Size dots_size, png_uint_32 &x_ppm, png_uint_32 &y_ppm, int unit_type)
Modified
bool PNGRaster::Create()
class PNGEncoder::Data
void PNGEncoder::Data::Start(Stream& stream, Size size_, Size dots_, int bpp, ImageKind kind_, bool interlace_, const RGBA *imgpal)
void PNGEncoder::Start(Size sz, Size dots)
-
Attachment: changes.7z
(Size: 12.16KB, Downloaded 236 times)
Best regards
IƱaki
[Updated on: Wed, 15 September 2010 09:19] Report message to a moderator
|
|
|
|
|
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: Fri Apr 26 23:26:11 CEST 2024
Total time taken to generate the page: 0.05953 seconds
|