I am currently working with pictures in Android. I have begun to use the following size 400x280. The first unit everything worked great, then I used a device with a higher resolution. Unfortunately, then soon became clear that the size is too small.
I have:
//image.getLayoutParams().height = 280;
//image.getLayoutParams().width = 400;
left out.
So then I had a custom image to the size. Unfortunately therefore no longer fits into my dimension of the image.
EVX = getX ...
Evy = getY ...
If ((EVX> 0) && (EVX <300) && (Evy> 0) && (Evy <300)) {
// Do soemthing...
}
This is to represent the intersection of the two circles, which are located in the image.
How can I enlarge the image? And my dimensions of the image area to maintain, adapt or?
I want to adjust the image to other devices while maintaining the intersection. So the exact area of the intersection. See IF query. Unfortunately, the IF query is not adapted to the new size of the image. And as I do not have an idea of how this might work. -- Transfer image area on new image size. --