please add a way to crop images and textures!
something as simple as image.crop(x,y,w,h) would be fine as long as it returned a image or imagedata
this could be used to make 1d tilebanks like what the older consoles used without having to code a ton of exceptions for tilesheets like.. exporting,
importing,
format,
multiple pages.
(suggestion) please add a way to crop a image
-
- Citizen
- Posts: 73
- Joined: Wed Oct 28, 2015 11:18 pm
Re: (suggestion) please add a way to crop a image
Are you aware that you can already draw cropped images using quads?
Re: (suggestion) please add a way to crop a image
ImageData:paste does that
DRAW DRAW - online painting app CLICK NUMBERS - cool game with numbers THEME LOVEFRAMES - a collection of my themes HOST FOR FREE - free hosting for online LOVE games STALK PEOPLE - a map of LOVE users
Re: (suggestion) please add a way to crop a image
I knew I was missing something.
- Guard13007
- Party member
- Posts: 134
- Joined: Sat Oct 25, 2014 3:42 am
- Location: Internet, USA
- Contact:
Re: (suggestion) please add a way to crop a image
While it would be convenient, there are other options that should be learned if it needs to be dynamic in some way, and otherwise this is the kind of thing that should be done in a editor rather than in a game engine, no?
(Note: I am speaking out of my ass at least a little, as I do not understand Quads at all. I understand a little of the ImageData stuff, but not that.. >.>)
(Note: I am speaking out of my ass at least a little, as I do not understand Quads at all. I understand a little of the ImageData stuff, but not that.. >.>)
- zorg
- Party member
- Posts: 3468
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: (suggestion) please add a way to crop a image
I would say that Quads are dynamic enough, but ultimately if you want even more freedom, you can use a Mesh directly; that also allows you to have arbitrary shapes and vertex parameters, unlike Quads, that restrict you to quadrilaterals (each two sides parallel)Guard13007 wrote: ↑Thu May 03, 2018 8:59 am While it would be convenient, there are other options that should be learned if it needs to be dynamic in some way, and otherwise this is the kind of thing that should be done in a editor rather than in a game engine, no?
(Note: I am speaking out of my ass at least a little, as I do not understand Quads at all. I understand a little of the ImageData stuff, but not that.. >.>)
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Who is online
Users browsing this forum: Ahrefs [Bot] and 2 guests