Skip to content

Commit 06ed501

Browse files
Spelling
1 parent 0c6f86d commit 06ed501

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/com/assertthat/selenium_shutterbug/utils/image/ImageProcessor.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,24 +231,24 @@ public static BufferedImage cropAndScale(BufferedImage source,double ratio, int
231231

232232

233233
private static BufferedImage getCompatibleImage(int w, int h, BufferedImage source) {
234-
BufferedImage bimage = null;
235-
try{
234+
BufferedImage bImage = null;
235+
try {
236236
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
237237
GraphicsDevice gd = ge.getDefaultScreenDevice();
238238
GraphicsConfiguration gc = gd.getDefaultConfiguration();
239-
bimage = gc.createCompatibleImage(w,h);
239+
bImage = gc.createCompatibleImage(w, h);
240240
} catch (HeadlessException e) {
241241
// The system does not have a screen
242242
}
243-
if (bimage == null) {
243+
if (bImage == null) {
244244
boolean hasAlpha = hasAlpha(source);
245245
int type = BufferedImage.TYPE_INT_RGB;
246246
if (hasAlpha) {
247247
type = BufferedImage.TYPE_INT_ARGB;
248248
}
249-
bimage = new BufferedImage(w, h, type);
249+
bImage = new BufferedImage(w, h, type);
250250
}
251-
return bimage;
251+
return bImage;
252252
}
253253

254254
public static boolean hasAlpha(Image image) {

0 commit comments

Comments
 (0)