java - Alphablending without buffered image -
i'd draw shape on graphics2d , colour part of different if intersects range. managed drawing 2 shapes bufferedimage (the original shape , area cause change of colour) using alphacomposite , alphacomposite.src_in. problem if canvas scrolled, screen becomes laggy every time paint method called, buffered image created.
is there way of achieving same effect (2 shapes overlapping, 2nd shape's overlap area coloured) without using buffered image object?
cheers, max
i'm not sure undertand you're trying do, shouldn't create buffered image each time paint method called; when changed in objects display.
Comments
Post a Comment