nisha080597
Member Since: 1997/08/05
Tech Certifications:

Provide a quick, creative biography in 140 characters or less.

More bio
Activity
Points this month0
Total points1,300
Questions: 11
Solutions: 4
Articles:
Videos:
Tutorials:
Posts:
Professional Background
No Professional Background shown
More
Education
No Education Background shown
More
Full Biography

You can make an image transparent using 5,6 lines of code in java.
The effect of the tranparency still depends on how the image is.In general case the border which you specified can be removed by simply checking the rgb value of the border colour and transparenting
that colour.
I am attaching a samlpe code which do the transparency!!!

class fff extends RGBImageFilter {
      int opacity = 0;
      public int filterRGB(int x,int y,int rgb)
       {    int alpha_channel = ( rgb >> 24) & 0xFF;
            alpha_channel = alpha_channel * opacity/255;
            return ((rgb&0x00ffffff)|(alpha_channel << 24));
       }
}                //XXXXYYYYRRRRRRRRGGGGGGGGBBBBBBBB
                 //00000000RRRRRRRRGGGGGGGGBBBBBBBB
                 //AAAAAAAA000000000000000000000000
                 //AAAAAAAARRRRRRRRGGGGGGGGBBBBBBBB

The commend shown here shows how the code changes the rgb value  of the colour to the transparent equivalent!!!

Good Luck.....

More
Languages
No Languages shown

Level Progress

Current: Level 0
nisha080597 needs 700 points to level up.
LVL 1
  • Overall
    0