Guest User

Untitled

a guest
Jul 16th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. Bitmap outputimage = new Bitmap(inputimage);
  2.  
  3. int hpic = inputimage.Height;
  4. int wpic = inputimage.Width;
  5.  
  6. for (int x = 0; x < 4; x++);
  7. {
  8. for (int y = 0; y < 3; y++)
  9. {
  10. for (int u = 0; u < wpic / 4; u++)
  11. {
  12. for (int v = 0; v < hpic / 3; v++)
  13.  
  14. Color tempPixelRGB = inputimage.GetPixel
  15. (wpic / 4 * x + u, hpic / 3 * y + v);
  16. }
  17. }
  18. }
  19.  
  20. return outputimage;
Add Comment
Please, Sign In to add comment