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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -