1 #define _CRT_SECURE_NO_WARNINGS
27 quint16 ULX,
ULY, BRX, BRY;
44 FILE *file = fopen(qPrintable(path),
"rb");
83 FILE *file = fopen(qPrintable(path),
"rb");
102 int width = h.
BRX-h.
ULX+1;
103 int height = h.
BRY-h.
ULY+1;
105 fseek(file, 100, SEEK_SET);
107 img -> resize(width, height);
111 for (
int y=0; y<height; y++) {
112 for (
int x=0; x<width; x++) {
114 img -> setValue(x,(height-y-1),pix);
119 for (
int y=0; y<height; y++) {
120 for (
int x=0; x<width; x++) {
122 img -> setValue(x,(height-y-1),pix);
129 img -> calculateRange();
131 img -> setDefaultFileName(path);