In case you didn't know, this is a sprite sheet: http://fc05.deviantart.net/fs70/f/20...y7-d2ygn9z.jpg
I would like to programmatically cut out each of those characters and save them as their own individual picture file. Any ideas?
Printable View
In case you didn't know, this is a sprite sheet: http://fc05.deviantart.net/fs70/f/20...y7-d2ygn9z.jpg
I would like to programmatically cut out each of those characters and save them as their own individual picture file. Any ideas?
Too bad they are not aligned up in even segments then you could use the PictureClip control
I'd like to stay away from adding controls.
Would you accept simi-programatic?
You could load the sheet into a Picturebox. Then using a selection rectangle (which you make) you capture the sprite in that rectangle and save it as an image file (bmp, jpg, gif, or whatever)
I've never understood sprite sheets....Do they seriously want to hit us with the tedium of having to remove them one by one in Photoshop ? I had to do that once and it really is tedious. I try to avoid sprite sheets whenever I can. What a retarded thing it is.
I'm actually figuring it out as we speak... to be continued.
In case you are interested in a simi-programatic way of doing it I included a simple program
@jmsrickland - I LOVE IT! Although, it's not precise unless you've got some super steady hands and a rather large magnifying glass.
What do you mean not precise? It is exactly precise. Just draw the selection rectangle around each image
I didn't want to take the time but I could have used a magnifier (like in MS Paint) to blow up the image area but as it is I find it very easy to draw the rectangle around each image - I can get the rectangle right up to the border of the image without any problem.
By "precise" I meant to cut out each sprite without having extra space around the edges. Just hang tight... I'm about to provide my program in full.
You realize every image has to be in a rectangle, don't you. I'm not going to code to the extent that you cut out the exact outline of the image since that would be pointless because once saved it's going to be in a box anyway.
I understand and that wasn't what I was asking for. I was looking for code to do it automatically. Your code doesn't.
Generally images in sprite sheets have to be cut out as rectangles. You use bitwise operations to invoke transparency when actually drawing the sprites in a game. That's how you get the exact image.
I posted that code with the statement that it was simi and only if you were interested in it. If you don't like it then don't use it. Besides it was a sample only and I didn't intend it to be everything you wanted. Read my disclaimer
Okay. I've created a community gmail account.
Username: [email protected]
Password: vbforumsmail1
Since I can't upload anything larger than 500k, you can use this. Just don't change anything and we can all use it. Use the honor system.
You'll see my project (RPG Map Maker) in the GMail Inbox. :check:
The idea with the gmail-account to "share personal data" is a bit "indirect" I'd say
(and inconvenient, especially for those who are currently logged in with a different gmail-account).
Can't you just use one of the "Online-Space"-offerings - and then simply declare one of your "synced online-files" as "publically available" (and post that link instead)?
E.g. Ubuntu One (http://one.ubuntu.com), which I use here allows that - and it offers 5GB-online-space for free.
Here's the download-page for the Windows-based syncing-client: https://one.ubuntu.com/downloads/windows/
Olaf