This site requires JavaScript, please enable it in your browser!
Greenfoot back
venkatesh438
venkatesh438 wrote ...

2021/6/21

i want to transparent particular part only

venkatesh438 venkatesh438

2021/6/21

#
i have 300 px width and 200 px height image ,i want to transparent on image at right corner just a small rectangle area of 20 width and 15 height ,this much of area i want to transparent on my image ,.please give any suggestion
venkatesh438 venkatesh438

2021/6/21

#
is it possible or not just tell one also
Gbasire Gbasire

2021/6/21

#
You should probably some software like gimp or photoshop
danpost danpost

2021/6/21

#
You can also accomplish this with program code. It takes a bit of image manipulation, but possible:
GreenfootImage original = new GreenfootImage("imagename.png");
GreenfootImage top = new GreenfootImage(280, 15);
top.drawImage(original, 0, 0);
GreenfootImage lower = new GreenfootImage(300, 185);
lower.drawImage(original, 0, -15);
original.clear();
original.drawImage(top, 0, 0);
original.drawImage(lower, 0, 15);
The original now has transparent corner.
venkatesh438 venkatesh438

2021/6/22

#
thank you so much....
You need to login to post a reply.