/ Forside / Teknologi / Udvikling / Java / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Java
#NavnPoint
molokyle 3688
Klaudi 855
strarup 740
Forvirret 660
gøgeungen 500
Teil 373
Stouenberg 360
vnc 360
pmbruun 341
10  mccracken 320
JMF API
Fra : pisipocchio


Dato : 25-09-02 22:13

Hi all,

I am "having fun" with the JMF API and was trying to grab some frames
from a video and save it to the disk,but i found some
difficulties,here it is some source code thet i wrote

//
public class Seek extends Frame implements ControllerListener,
ActionListener {

FrameGrabbingControl fgc;
...
fgc =
(FrameGrabbingControl)p.getControl("javax.media.control.FrameGrabbingControl");
....
....
Buffer buff1= new Buffer();
buff1 =fgc.grabFrame();

BufferToImage bti = new BufferToImage(buff1.getFormat());
Image imm = bti.createImage(buff1);

//

at this point the compiler tells me that couldn't find the constructor
for the class BufferToImage,but why?
Indeed everything works fine if i use the dual constructor of the
class
ImageToBuffer...i could say:"java misteries"

Can someone help me?

THANKS

PISI


 
 
Søg
Reklame
Statistik
Spørgsmål : 177558
Tips : 31968
Nyheder : 719565
Indlæg : 6408925
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste