java - how to get a region out of an image? -


lets use black key jpg image layout in java code. there easy way region out of image can use region.contains() ontouchlistener?

i've looked them , there isn't any. ask because im making piano app , regions of images use black/white keys.

rather use image, try rendering piano keys yourself, , check if input in black key regions render, rather using image.

if want use image, define black regions within image hand.

detecting regions in image difficult problem, 1 don't want such simple purpose. if had many images, or had might worth headache presumably don't... don't worry it.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -