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 51
51
<artifactId >commons-io</artifactId >
52
52
<version >2.7</version >
53
53
</dependency >
54
- <dependency >
55
- <groupId >org.projectlombok</groupId >
56
- <artifactId >lombok</artifactId >
57
- <version >1.18.8</version >
58
- </dependency >
59
54
<dependency >
60
55
<groupId >com.github.zafarkhaja</groupId >
61
56
<artifactId >java-semver</artifactId >
Original file line number Diff line number Diff line change 1
1
package com .assertthat .selenium_shutterbug .utils .image .model ;
2
2
3
3
import com .assertthat .selenium_shutterbug .utils .file .FileUtil ;
4
- import lombok .Getter ;
5
4
6
5
import java .awt .*;
7
6
import java .awt .image .BufferedImage ;
8
7
import java .io .File ;
9
8
import java .text .DecimalFormat ;
10
9
11
- @ Getter
12
10
public class ImageData {
13
11
private final int RED_RGB = new Color (255 , 0 , 0 ).getRGB ();
12
+
14
13
private final BufferedImage image ;
15
14
private final int width ;
16
15
private final int height ;
@@ -21,6 +20,18 @@ public ImageData(BufferedImage image) {
21
20
this .height = image .getHeight (null );
22
21
}
23
22
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
+
24
35
public boolean notEqualsDimensions (ImageData imageData ) {
25
36
return !equalsDimensions (imageData );
26
37
}
You can’t perform that action at this time.
0 commit comments