Skip to content

Commit

Permalink
Get rid of unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
sarxos committed Jun 11, 2014
1 parent ea7aba5 commit 10ddd52
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ public Thread newThread(Runnable r) {
t.setDaemon(true);
return t;
}

}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.github.sarxos.webcam.util;

import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.awt.image.DataBuffer;
import java.awt.image.DataBufferByte;
Expand Down Expand Up @@ -39,24 +38,6 @@ public class ImageUtils {
*/
public static final String FORMAT_WBMP = "WBMP";

public static BufferedImage premultiple(BufferedImage src) {
BufferedImage pre = new BufferedImage(512, 512, BufferedImage.TYPE_INT_ARGB_PRE);
Graphics2D g2 = pre.createGraphics();
g2.drawImage(src, 0, 0, null);
g2.dispose();
pre.flush();
return pre;
}

public static BufferedImage unpremultiple(BufferedImage pre) {
BufferedImage src = new BufferedImage(512, 512, BufferedImage.TYPE_INT_ARGB);
Graphics2D g2 = pre.createGraphics();
g2.drawImage(src, 0, 0, null);
g2.dispose();
src.flush();
return src;
}

/**
* Convert {@link BufferedImage} to byte array.
*
Expand Down

0 comments on commit 10ddd52

Please sign in to comment.