Good mornning everyone
I'm trying to read a part of a PNG image file using Libpng and VC++ 2008 but unfortunately while executing the program an error " access violation memory" occured
Please help me and thanks in advanceCode:// Initialisation png_bytep row_pointers; png_structp png_ptr ; .................. ..................... BYTE * buffer = (BYTE *)malloc((size*sizeof(BYTE)); //size : is less than image lenght row_pointers = (png_bytep)(buffer +size); png_read_image (png_ptr, row_pointers); //the problem occured here ............... ..............



2Likes
LinkBack URL
About LinkBacks



...... when I try to read the data from row_pointers, it seem to be completely different from the image data