int main(int argc, char* argv[]) { int val1 = -10; int val2 = -20; std::cout << convertion_optimal(val1, val2) << '\t' << convertion(val1, val2) << '\n'; return 0; }
void set_pixel(int target, int x, int y, int a, int r, int g, int b) { unsigned char* bytes = get_pixel_bytes(target); int starting_byte = convertion(get_image_width(target), x, y); bytes[starting_byte+0] = b; bytes[starting_byte+1] = g; bytes[starting_byte+2] = r; bytes[starting_byte+3] = a; }
int john::Johnson(){ int current_size=2; if (!this->processed) //if already done @doWell, then don't nedd to do it again { if(!doWell(current_size,detail,matrix)) return 1; } return convertion(old_matrix,machin,detail); }