Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1.  
  2. // We need a new buffered image without the alpha channel
  3. BufferedImage imageNoAlpha = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
  4. loadPixels();
  5. imageNoAlpha.setRGB(0, 0, width, height, g.pixels, 0, width);
  6. bOK = du.UploadImage("snapshot." + currentFormat, imageNoAlpha);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement