File reading successful ~ thanks to derdachs

This commit is contained in:
Caesar2011
2016-08-29 16:25:14 +02:00
parent 7a7633eebe
commit 2ddda6788a
4 changed files with 40 additions and 9 deletions

View File

@@ -1,15 +1,9 @@
#include <iostream>
#include <stdio.h>
#include <jpeglib.h>
using namespace std;
int main()
{
loadJpg("..\img\foregrounds\1.jpg")
cout << "Hello world!" << endl;
return 0;
}
int loadJpg(const char* Name) {
unsigned char a, r, g, b;
int width, height;
@@ -63,8 +57,17 @@ int loadJpg(const char* Name) {
(void) jpeg_finish_decompress(&cinfo);
jpeg_destroy_decompress(&cinfo);
BMap = (int*)pTest;
/*BMap = (int*)pTest;
Height = height;
Width = width;
Depth = 32;
Depth = 32;*/
cout << width << endl;
}
int main()
{
loadJpg("../img/foregrounds/1.jpeg");
cout << "Hello world!" << endl;
return 0;
}