[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pngpp-devel] Re: Image_info object
From: |
Alexander Shulgin |
Subject: |
[pngpp-devel] Re: Image_info object |
Date: |
Tue, 4 Nov 2008 23:41:05 +0200 |
On Tue, Nov 4, 2008 at 11:33 PM, Sebastian Camjayi <address@hidden> wrote:
> Hi Alex, my name is Sebastian, and i have a question for you.
> How can i get (having the image's path) the Image Info object??
> I need get information about the color type and bit depth to instanciate the
> correct Image<pixel> object.
> this is correct?
> Thanks you.
Hi,
I think you can use this (not tested):
std::ifstream file("myimage.png");
png::reader< std::istream > reader(file);
reader.read_info();
png::image_info info = reader.get_info();
...
Please keep pngpp-devel in CC. ;)
--
Cheers,
Alex
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [pngpp-devel] Re: Image_info object,
Alexander Shulgin <=