Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : Creating a "choose and zoom image" program

$
0
0


like this

  1.   if (mouseX>100&&mouseX<100+100&&mouseY>10&&mouseY<10+100)
  2.   {
  3.     imgBig=img1a.get(0, 0, img1a.width, img1a.height);
  4.   }
  5.   else if (mouseX>300&&mouseX<300+100&&mouseY>10&&mouseY<10+100)
  6.   {
  7.     imgBig=img2a.get(0, 0, img1a.width, img1a.height);
  8.   }
  9.   else if (mouseX>500&&mouseX<500+100&&mouseY>10&&mouseY<10+100)
  10.   {
  11.     imgBig=img3a.get(0, 0, img1a.width, img1a.height);
  12.   }
  13.   //


Viewing all articles
Browse latest Browse all 1768

Trending Articles