Skip to content

Commit

Permalink
Adding CLabel:getDpi()
Browse files Browse the repository at this point in the history
  • Loading branch information
RobFaustLZ committed Jun 18, 2024
1 parent d6ea586 commit d7aab56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = 'com.labelzoom.api'
version = '1.0.21'
version = '1.1.0'

java {
sourceCompatibility = JavaVersion.VERSION_1_8
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/labelzoom/api/model/components/CLabel.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,9 @@ public List<AComponent> getSortedElements()
else if (!c1.isReverse() && c2.isReverse()) return -1;
return Integer.compare(this.getElements().indexOf(c1), this.getElements().indexOf(c2));
};

public int getDpi()
{
return isHighRes ? 1000 : 100;
}
}

0 comments on commit d7aab56

Please sign in to comment.