[3332] in java-interest
Re: ImageProducer/Consumer classes
daemon@ATHENA.MIT.EDU (David Gourley)
Tue Nov 7 22:33:11 1995
From: David Gourley <dgourley@CS.Berkeley.EDU>
To: java-interest@java.sun.com
In-reply-to: Your message of "Tue, 07 Nov 1995 00:12:35 PST."
<9511070812.AA24632@bendenweyr.Eng.Sun.COM>
Date: Tue, 07 Nov 1995 17:05:22 -0800
Hello,
> The first time you try to draw the image using drawImage, you will get
> an "ImageRepresentation" object attached to you which will handle the
> conversion of the pixels for the screen...
So I need to explicitly call the drawImage method on the Image that I
created using (Frame)foo.createImage for each frame? The only way I see to
do this is get the graphics member of the frame and use its drawImage
method, which takes an ImageObserver... do I need to write this as well, if
not where can I get a copy of the ImageObserver for this object? Also if I
have to call drawImage for each frame, how do I know if it is safe to make
the call(ie. is the setPixels call synchronous or asynchronous).
I re-wrote my Producer to use a Vector to store the Consumers, now it seems
that the initial InfoGrabber Consumer does not bail out after the first
imageComplete weird...
I am sorry about all the questions, I just know that I am getting valid
frame pixel data and I just cant seem to get the Producer/Consumer classes
to work with my frame sequences. It must be apparent, I dont know why I
cant see it.
Thanks again...
-david
dgourley@CS.Berkeley.EDU
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com