Hi,
I have a problem with painting a bufferedImage on the screen. The image is
simply created from an array of shorts that are used to create a
databuffer which together with a componentsamplemodel are used to create a
WritableRaster. This raster is then used with a colorcomponentmodel to
Hi all,
Can animated gif be played by Java2D API ?
Thanks
Patrick
===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message signoff JAVA2D-INTEREST. For general help, send email to
[EMAIL
Hmm I am not really sure, but I haven't seen any code that works directly.
What people usually do is creating a Timer that fires events to exchange the
phases to show an animation.
Such a code can be easily created in 5..10 minutes.
Karsten
Hi all,
Can animated gif be played by Java2D API ?
yes.
Just create and ImageIcon( giffileName ) and put in on screen.
Works wonders.
*--
Send to you by Pieter van den Hombergh ([EMAIL PROTECTED])
Make sure not to open ticking Mail...
*-
On Sat, 6 Oct 2001, Patrick Tang
Attached is a short one-file example that creates a buffered image and
displays it in a JPanel.
Using the mouse you can pan, zoom and rotate the image as follows:
* To zoom, drag left mouse button up (bigger) or down (smaller).
* To pan, drag right mouse button in any direction.
* To
Ted,
The following change fixes the 'jumping' problem. However, it effects where your
rotation center is. But that
may be a simplier problem.
// right mouse does pan and rotate
if(SwingUtilities.isRightMouseButton(e))
{
bZooming = false;
Handling ordering of operations with affine transforms is always one
of the trickiest parts of mastering 2D transformations. A while back
someone posted a pointer to this tutorial which both teaches some
fundamental properties of affine transformations and also has a few
applets that let you