Selective area load of Images
Posted: Mon May 10, 2021 10:25 am
Hi
I’m loading a png image, and setting it to a location on the screen, then using sprite with black drawn rectangles to cover up what I don’t want to display. Not a good way to do it, when you have multiple images and each time you want to display different areas of the other png images.
Is there another way to load only a certain area of the png image?
eg . an area of cordinates from x1, y1 to x2 to y2 of the original png image and displaying this area only to the graphics screen
Thanks
I’m loading a png image, and setting it to a location on the screen, then using sprite with black drawn rectangles to cover up what I don’t want to display. Not a good way to do it, when you have multiple images and each time you want to display different areas of the other png images.
Is there another way to load only a certain area of the png image?
eg . an area of cordinates from x1, y1 to x2 to y2 of the original png image and displaying this area only to the graphics screen
Thanks