Image Class cropping with Rect2 #13001
Theklo-Teal
started this conversation in
Engine Core
Replies: 1 comment
-
Would have to be named differently as overloading is not supported, but the simple workaround is: my_image = my_image.get_region(my_rect) It's not as efficient and doesn't update other copies though |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently the Image class, meant to manipulate the native image datatype contains the function
void crop(width: int, height: int)
I suggest that the argument should be a Rect2, or otherwisewidth, height, x, y
, or evenx_start, y_start, x_stop, y_stop
. This would allow to crop the center of a picture, for example.Beta Was this translation helpful? Give feedback.
All reactions