Making a graphic transparent
All programs
This article describes the three methods for making a graphic partially transparent. Such graphics are often used on templates as borders and frames or whenever a blending result is result is required between the graphic and other objects on the template.
There three ways of achieving transparency.
One bit transparency - simply clicking the area to be made transparent
When the graphic is imported into the software, either directly onto the template or into a file or folder field, the user has the option of clicking on any color in order to make that color transparent. Only pixels with precisely the same RGB values will be removed. As a result any edges where the colors are not "pure" (as would occur when using jpeg compression for example) will not become completely transparent and fringing occurs. This is most often displayed as white flicks or specs and is compounded when edges are softened by the use of anti-aliasing, feathering, drop shadows and the like. For these reasons the one bit transparency support while very convenient is generally only used with graphics with "clean" edges.
To achieve one bit transparency:
- Add the graphic to the template or import a graphic into a field
- From the Set Bitmap Mask window simply click the area of the graphic to be made transparent
- Click OK to import the graphic with transparency
2. Eight bit transparency - using a greyscale mask
A more powerful method of achieving transparency is to use an image editor such as Adobe PhotoshopTM to create an 8-bit transparency mask. With such a mask areas of the mask that are 100% black will be completely transparent. Any areas of the mask that are 100% white will be completely opaque. The remaining 254 shades of grey provide varying degrees of transparency/opacity.
The use of 8-bit masks to achieve transparency has been somewhat superseded by direct transparency support with png files as described in method three below.
To add an eight bit mask to a graphic
- Add the graphic to the template or import a graphic into a field
- From the Set Bitmap Window click the Add file button
- From the Set Mask window browse to the mask
- Click OK to add the mask to the graphic and OK again to add the graphic to the template
Direct transparency support with PNG files
The most popular method for adding transparency to a graphic is to create the graphic with the desired transparency already in tact (using an external image editor such as Photoshop). The graphic is then added to the template or imported into a field as normal.
The following conditions apply:
- If layers have been used the file should not be flattened
- The file must be saved in the png format
- When importing the file do not set a mask be either clicking the transparent area or adding another mask
End of article