Re: Play video from images
Without seeing any code we'd be merely guessing. Is it possible to reduce the troublesome part to a SSCCE (Short, Self Contained, Correct (Compilable), Example) that demonstrates the problem?
Before you post any code please go through these links:
http://www.java-forums.org/forum-gui...w-members.html
BB Code List - Java Programming Forum
db
Re: Play video from images
I'm so sorry for my unclear question.
I use a canvas to render my frames
class CanvasScreen extends Canvas
{
.......public CanvasScreen (Container _parent)
.......{
.............._parent.add(this);
..............this.createBufferStrategy(2);
.......}
.......public void paint(Graphics gr)
.......{
..............super.paint(gr);
..............if (img != null)
..............{
.....................Graphics2D gr2D = (Graphics2D)gr;
.....................gr2D.drawImage(img, 0, 0, this);
..............}
.......}
.......public void changeFrame (BufferedImage _newImg)
.......{
..............img = _newImg;
..............this.repaint();
.......}
}
And I use a timer to change frame of the CanvasScreen 25 times per second
If you need further information, please feel free to tell me.
Thank you in advance.
Re: Play video from images
If you can't be bothered to go through the pages I linked, do you really think anyone here will take the trouble to try and help?
db