Hey, I have an array of icons tiled in a single image. To get a specific icon, I call getClippedImage(rect…), however if I wish to modify the icon afterwards I will modify the original image.
Do I need to duplicate the original array of icons (the large image) for each individual icon I want to modify? That seems wasteful. It would be good to be able to destructively crop the original, or deep copy a subsection.
BTW there would be no advantage in me adding a destructive method to clip an image, since internally it’d just do almost exactly the same thing as my suggested code above.