Transparency is based on objects, not on textures. To make an object transparent, use the mentioned setTransparency(...)-method. The rest of the post was just about using the textures alpha channel or calculate a new one. If you want to make parts of an object transparent while others are not, you have to split into several objects.