ImageFrameDelay rename in GetImageFrameDelay

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User_Russian
Addict
Addict
Posts: 1520
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

ImageFrameDelay rename in GetImageFrameDelay

Post by User_Russian »

I propose to rename function ImageFrameDelay in GetImageFrameDelay and add function SetImageFrameDelay to set frame delay.
Now this is impossible to make and code does work not correctly.

Code: Select all

CreateImage(0, 200, 200)
For i=1 To 10
  AddImageFrame(0)
Next i

Count = ImageFrameCount(0)

For i=1 To Count
  Debug ImageFrameDelay(0)
Next i
User_Russian
Addict
Addict
Posts: 1520
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: ImageFrameDelay rename in GetImageFrameDelay

Post by User_Russian »

If in next versions will be added creating GIF (UseGIFImageEncoder()) then it makes sense to rename the function now. Already had many cases when functions were renamed and had to change a lot of code...
In addition, can now create multiple image frames (without saving in gif) and it would be great to have the information about the delay between frames.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: ImageFrameDelay rename in GetImageFrameDelay

Post by netmaestro »

User_Russian wrote:In addition, can now create multiple image frames
Ok, here's the thing. No. But my guess is we have a language barrier and I didn't take your intended meaning.
BERESHEIT
mestnyi
Addict
Addict
Posts: 1098
Joined: Mon Nov 25, 2013 6:41 am

Re: ImageFrameDelay rename in GetImageFrameDelay

Post by mestnyi »

+1
Post Reply