File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
src/main/java/com/assertthat/selenium_shutterbug/utils/image/model Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 5151 <artifactId >commons-io</artifactId >
5252 <version >2.7</version >
5353 </dependency >
54- <dependency >
55- <groupId >org.projectlombok</groupId >
56- <artifactId >lombok</artifactId >
57- <version >1.18.8</version >
58- </dependency >
5954 <dependency >
6055 <groupId >com.github.zafarkhaja</groupId >
6156 <artifactId >java-semver</artifactId >
Original file line number Diff line number Diff line change 11package com .assertthat .selenium_shutterbug .utils .image .model ;
22
33import com .assertthat .selenium_shutterbug .utils .file .FileUtil ;
4- import lombok .Getter ;
54
65import java .awt .*;
76import java .awt .image .BufferedImage ;
87import java .io .File ;
98import java .text .DecimalFormat ;
109
11- @ Getter
1210public class ImageData {
1311 private final int RED_RGB = new Color (255 , 0 , 0 ).getRGB ();
12+
1413 private final BufferedImage image ;
1514 private final int width ;
1615 private final int height ;
@@ -21,6 +20,18 @@ public ImageData(BufferedImage image) {
2120 this .height = image .getHeight (null );
2221 }
2322
23+ public BufferedImage getImage () {
24+ return image ;
25+ }
26+
27+ public int getWidth () {
28+ return width ;
29+ }
30+
31+ public int getHeight () {
32+ return height ;
33+ }
34+
2435 public boolean notEqualsDimensions (ImageData imageData ) {
2536 return !equalsDimensions (imageData );
2637 }
You can’t perform that action at this time.
0 commit comments