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

Using 'OR' and 'AND' in SQL Server -

c++ - NetBeans Remote Development with additional configuration -

visual studio - TFS will not accept changes I've made to a Java project -