Skip to content

Commit

Permalink
add getOriginalScale to BaseObjectFilterRender
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroSG94 committed Jan 16, 2025
1 parent 9e17d64 commit 63a427c
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,12 @@ public void setDefaultScale(int streamWidth, int streamHeight) {
streamObject.getHeight() * 100 / streamHeight);
squareVertexObject.put(sprite.getTransformedVertices()).position(0);
}

public PointF getOriginalScale() {
if (streamObject != null) {
return new PointF(streamObject.getWidth(), streamObject.getHeight());
} else {
return new PointF(0, 0);
}
}
}

0 comments on commit 63a427c

Please sign in to comment.