Advertisement
Sirius_Crack

Untitled

May 6th, 2021
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. void dechunck(Pixel ** image, int f, int h, int w){
  2. int h0, w0;
  3. int h1, w1;
  4. int h2, w2;
  5. int h3, w3;
  6. int h4, w4;
  7. int h5, w5;
  8. int h6, w6;
  9. int h7, w7;
  10. int h8, w8;
  11. int h9, w9;
  12. int h10, w10;
  13. int h11, w11;
  14. int h12, w12;
  15. int h13, w13;
  16. int h14, w14;
  17. int h15, w15;
  18. Pixel ** t0;
  19. Pixel ** t1;
  20. Pixel ** t2;
  21. Pixel ** t3;
  22. Pixel ** t4;
  23. Pixel ** t5;
  24. Pixel ** t6;
  25. Pixel ** t7;
  26. Pixel ** t8;
  27. Pixel ** t9;
  28. Pixel ** t10;
  29. Pixel ** t11;
  30. Pixel ** t12;
  31. Pixel ** t13;
  32. Pixel ** t14;
  33. Pixel ** t15;
  34. t0 = LoadImage("0", &h0, &w0);
  35. if(f > 0){
  36. t1 = LoadImage("1", &h1, &w1);
  37. }
  38. printf("%i", w0);
  39. printf("nice\n");
  40. SaveImage("test", t1, h1, w1);
  41. if(f > 1){
  42. t2 = LoadImage("2", &h, &w);
  43. t3 = LoadImage("3", &h, &w);
  44. }
  45. if(f > 2){
  46. t4 = LoadImage("4", &h, &w);
  47. t5 = LoadImage("5", &h, &w);
  48. t6 = LoadImage("6", &h, &w);
  49. t7 = LoadImage("7", &h, &w);
  50. }
  51. if(f > 3){
  52. t8 = LoadImage("8", &h, &w);
  53. t9 = LoadImage("9", &h, &w);
  54. t10 = LoadImage("10", &h, &w);
  55. t11 = LoadImage("11", &h, &w);
  56. t12 = LoadImage("12", &h, &w);
  57. t13 = LoadImage("13", &h, &w);
  58. t14 = LoadImage("14", &h, &w);
  59. t15 = LoadImage("15", &h, &w);
  60. }
  61.  
  62. for(int i = 0; i < h; i++){
  63. for(int j = 0; j < w; j++){
  64. if(f == 1){
  65. if(j <= w/2){
  66. for(int y = 0; y < h0; y++){
  67. for(int x = 0; x < w0; x++){
  68. image[i][j] = t0[y][x];
  69. printf("%i", j);
  70. j++;
  71. }
  72. printf("\n");
  73. i++;
  74. }
  75. j = w/2;
  76. }
  77. if(j > w/2){
  78. for(int y = 0; y < h1; y++){
  79. for(int x = 0; x < w1; x++){
  80. image[i][j] = t1[y][x];
  81. j++;
  82. }
  83. i++;
  84. }
  85. }
  86. }
  87. }
  88. }
  89. return;
  90. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement