Restored from previous forum. Originally posted by Kendrel.
It would be great to have something like LoadAnimImage (From BB).
I think its very usefull for Game Programming, and also for some little effects (Text Scrollers) it would be great.
Any chance to get something like that?
Load Anim Image
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- Enthusiast
- Posts: 423
- Joined: Fri Apr 25, 2003 5:22 pm
- Contact:
I wanted to start a new topic, but here is already the same question!
Because it's damn unconvenient to handle 768 individual images to get access of each line of one 1024x768 picture.
What's the actual status of it's implementation ?
It would be great to be able to load an image with any specified framesize and easiliy call each of the loaded image-frames.
-> load an image, and give x,y-dimensions of one frame of it, e.g. 20x20 or 1024x1 ,etc.
e.g. result = LoadSprite(#Sprite, Name$ , frameX, frameY, frameCountStart [, mode])
then all these frames are automatically loaded with a frameCountID into an array (?) going from top left to bottom right.
(And if the actual frame-dimension while loading goes over the region of the image it's filled up with FrontColor() e.g.)
To show it use e.g. DisplaySprite(#Sprite, x, y, frameCountID)
Many smooth & cool live-graphic-effects using For/Next-Loops can be made very fast & easy with it.
Will it come some day ??
Because it's damn unconvenient to handle 768 individual images to get access of each line of one 1024x768 picture.
What's the actual status of it's implementation ?
It would be great to be able to load an image with any specified framesize and easiliy call each of the loaded image-frames.
-> load an image, and give x,y-dimensions of one frame of it, e.g. 20x20 or 1024x1 ,etc.
e.g. result = LoadSprite(#Sprite, Name$ , frameX, frameY, frameCountStart [, mode])
then all these frames are automatically loaded with a frameCountID into an array (?) going from top left to bottom right.
(And if the actual frame-dimension while loading goes over the region of the image it's filled up with FrontColor() e.g.)
To show it use e.g. DisplaySprite(#Sprite, x, y, frameCountID)
Many smooth & cool live-graphic-effects using For/Next-Loops can be made very fast & easy with it.
Will it come some day ??

%1>>1+1*1/1-1!1|1&1<<$1=1
Froggerprogger wrote:I wanted to start a new topic, but here is already the same question!
Because it's damn unconvenient to handle 768 individual images to get access of each line of one 1024x768 picture.

however, didn't danilo already write a library providing this functionality?
Good programmers don't comment their code. It was hard to write, should be hard to read.
-
- Enthusiast
- Posts: 423
- Joined: Fri Apr 25, 2003 5:22 pm
- Contact:
-
- PureBasic Expert
- Posts: 2812
- Joined: Fri Apr 25, 2003 4:51 pm
- Location: Portugal, Lisbon
- Contact:
Try the link on Danilo's signature hereFroggerprogger wrote:Where to get the Anim-Library from?![]()
I cannot find it on the resource-site.

viewtopic.php?t=6063&postdays=0&postorder=asc&start=0
It's one of the most excelent work i've seen so far for PB

-
- Enthusiast
- Posts: 423
- Joined: Fri Apr 25, 2003 5:22 pm
- Contact: