Deleted
Deleted Member
Posts: 0
|
Frames
Jan 25, 2009 15:03:18 GMT -5
Post by Deleted on Jan 25, 2009 15:03:18 GMT -5
Hi Guilect,
i need a command, who says to me how many frames has an image ! do you have a solution therefor ?
thank you for reply.
|
|
|
Frames
Jan 25, 2009 22:24:22 GMT -5
Post by Guilect on Jan 25, 2009 22:24:22 GMT -5
Well, no program is capable of guessing how many frames. So they need some help from you.
You can load in an image into B2D and you can get the width and height of the whole image. If you can provide the width and height of a single frame then the total number of frames can be calculated. (e.g. each frame is 64x64 and width of the image is 640 and hieght is 64 then you would have 10 frames total). You can use various paint programs to open an image and determine a frame size.
|
|
Deleted
Deleted Member
Posts: 0
|
Frames
Jan 26, 2009 5:39:23 GMT -5
Post by Deleted on Jan 26, 2009 5:39:23 GMT -5
yes, i am knowing. That's correct ! This was not directly my question . I meant, if all images were loaded (e.g 100). So, i might write "Frames = Graphics.GetFrames (Tiles27)". I would get back the number of frames here. But we are having only a command "SetTotalFrames image, totalframes" ! That's what i meant . I'm sorry for the misunderstanding.
|
|
|
Frames
Jan 26, 2009 17:56:21 GMT -5
Post by Guilect on Jan 26, 2009 17:56:21 GMT -5
I understand...now It should be easy to do. I shall try to remember to put it in the next release. I am busy right now with other things, so the next release could be in a week or two. Sooner if I can.
|
|