Hello Savannah
I'm working with you C++ solution to libpng (PNGPP) and it works great.
I only have one problem...
I'm working on an image processing project which has to load big images
(like 799x2429 pixels).
When I read the pixel values of a small image, it works just fine. But when
I read a big image, the values are all wrong. So I was wondering if there
is a maximum size for the image? Or did I oversee something in your code?
This is all I have now (just to get used to your code and to see how to
compare and read all the values)
png::image< png::rgba_pixel > img, img2;
img.read(argv[1]);
img2.read(argv[2]);
for(unsigned int y = 0; y < img.get_height(); y++)
{
for(unsigned int x = 0; x < img.get_width(); x++)
{
/*if(img[x][y].red == 0)
cout << "x:" << x << "y:" << y << endl;*/
}
}
cout << "pix[0][2429] " << (int)img[14][14].red << endl;
cout << "pix2[0][2429] " << (int)img2[14][14].red << endl;
so its nothing big of a code.
Please help me?
Greetings Wim Peters