This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes How to get hardware acceleration on 2d images in applets? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply locked New topic
Author

How to get hardware acceleration on 2d images in applets?

C Wang
Greenhorn

Joined: Jun 05, 2009
Posts: 3
I tried using VolatileImage but it wasn't accelerated (image.getCapabilities().isAccelerated() returned false)
I basically used it like this

public VolatileImage image;
public Constructor(){
image = gc.createCompatibleVolatileImage(width, height, Transparency.OPAQUE);
}

what else am i supposed to do to get it hardware accelerated?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41060
    
  43
I don't think that's applet-specific, so I moved the question to the general GUI forum.

Let's discuss this in this duplicate post.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get hardware acceleration on 2d images in applets?
 
Similar Threads
BufferedImage versus VolatileImage
Graphics and animation in Java
Does every image need to be a 'VolatileImage' in a 2d game?
What is the relationship between WebGL and HTML5?
Why does a gradiant paint affect performance so much?