Create one large image out of many small ones?
Create one large image out of many small ones?
Is it posible to create a drawable object out of some other drawable objects? And How would I do it?
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Create one large image out of many small ones?
You can use [wiki]ImageData:paste[/wiki], if you're in ImageData land.
You could draw them to a [wiki]Canvas[/wiki], if you want the more efficient route.
If you've got a spritesheet and want to recombine them into a drawable, you could also look at [wiki]SpriteBatch[/wiki].
If you just have a lot of separate images you want to make a spritesheet of, though, I recommend doing that in an image editor beforehand.
You could draw them to a [wiki]Canvas[/wiki], if you want the more efficient route.
If you've got a spritesheet and want to recombine them into a drawable, you could also look at [wiki]SpriteBatch[/wiki].
If you just have a lot of separate images you want to make a spritesheet of, though, I recommend doing that in an image editor beforehand.
Re: Create one large image out of many small ones?
Thanks the canvas works perfectbartbes wrote:You can use [wiki]ImageData:paste[/wiki], if you're in ImageData land.
You could draw them to a [wiki]Canvas[/wiki], if you want the more efficient route.
If you've got a spritesheet and want to recombine them into a drawable, you could also look at [wiki]SpriteBatch[/wiki].
If you just have a lot of separate images you want to make a spritesheet of, though, I recommend doing that in an image editor beforehand.
Re: Create one large image out of many small ones?
The canvas is a kind of object that many games more or less need, but it's one of those things that are hard to understand that they exist without already knowing it. I also remember learning about them through a forum post and I was all like "Oooooh!".
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
- MicroMacro
- Citizen
- Posts: 92
- Joined: Fri May 30, 2014 2:30 am
- Location: Boston, MA, USA
- Contact:
Re: Create one large image out of many small ones?
Do you have a link to said forum post? I've been looking for a good explanation on them, and I can't find a darned one.T-Bone wrote:I also remember learning about them through a forum post and I was all like "Oooooh!".
https://github.com/ebernerd- where you can find all my work.
Re: Create one large image out of many small ones?
What specifically are you wondering about canvases? The wiki has quite good documentation and some examples. It is easier to help if you tell us what you know and what you want to learnMicroMacro wrote:Do you have a link to said forum post? I've been looking for a good explanation on them, and I can't find a darned one.T-Bone wrote:I also remember learning about them through a forum post and I was all like "Oooooh!".
Re: Create one large image out of many small ones?
The post itself didn't contain much more info than "Have you tried canvases?", IIRCMicroMacro wrote:Do you have a link to said forum post? I've been looking for a good explanation on them, and I can't find a darned one.T-Bone wrote:I also remember learning about them through a forum post and I was all like "Oooooh!".
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
Who is online
Users browsing this forum: Bing [Bot] and 2 guests