On Tue, 16 Dec 2003 01:32:41 +0200, Toni Heinonen <[EMAIL PROTECTED]> wrote:
>Hello, Hi Toni, >I'm doing the application in swing. How should I actually put the graphics >in the window? Not in the window, use one of JComponents - JPanel for example. >As a bufferedimage, as a graphics2d object? As an icon into a label? This >sounds like a hack. You can easy draw your BufferedImage into Graphics of JComponent, use getGraphics() or overwrite paintComponent(Graphics g) method. >I guess when I do image effects like fading I should have the images in >bufferedimages. Can I do blurring to bufferedimages or do I need to make >them into graphics2d objects first? BufferedImage has also getGraphics() method >I guess the layered model would be easy to do with 32-bit bufferedimages >with alpha channels. Should I then combine the layers into one image >myself or let swing/graphics2d do it? you can do both of them, if you need resulting image just for screen, you may choose to paint all your buffered images directly to Graphics of your JComponent. =========================================================================== 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 PROTECTED] and include in the body of the message "help".
