java - Program adjust transparent image for greenscreen -


as fun little project, trying create 'overlay' program.
perhaps you've heard of program 'open broadcaster software'.
streaming program can 'record' windows , apply 'color key' them (making color transparent)

i have program creates window green background, acting greenscreen. on window want make images appear, dissapear , move.

so far good, problem comes transparent images. have color hue on them because color key tries remove or smoothen out colors.

so question is; there way programmatically add color picture, or strengthen other colors, color key instead render original?

sincerely, jb

rendering pertially translucent image on backgroud showing background color shining trough whole point of translucency.

there nothing can without sacrificing transparency in way or another. few useful effects can achieved java.awt.alphacomposite, i'm not sure of effects suit fancy.

you preprocess images , change translucency simple transparent/opaque (e.g. alter alpha each pixel newalpha = oldalpha < threshhold ? 0x00 : 0xff). selecting good-looking threshhold value might tricky (no one-size fits all). needless result in drop in perceived image quality.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -