Skip to content

Commit 6fe3bce

Browse files
committed
Add info about how iText works with opacity.
DEVSIX-1358
1 parent 345a64f commit 6fe3bce

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

io/src/main/java/com/itextpdf/io/LogMessageConstant.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public final class LogMessageConstant {
5353
public static final String ATTEMPT_TO_MOVE_TO_FLUSHED_PARENT = "An attempt is made to move the tag tree pointer to the tag parent which has been already flushed. Tag tree pointer is moved to the root tag instead.";
5454
public static final String CALCULATE_HASHCODE_FOR_MODIFIED_PDFNUMBER = "Calculate hashcode for modified PdfNumber.";
5555
public static final String CLIP_ELEMENT = "Element content was clipped because some height properties are set.";
56-
public static final String COLOR_ALPHA_CHANNEL_IS_IGNORED = "Alpha channel {0} was ignored during creation of color";
56+
public static final String COLOR_ALPHA_CHANNEL_IS_IGNORED = "Alpha channel {0} was ignored during color creation. Note that opacity can be achieved in some places by using 'setOpacity' method or 'TransparentColor' class";
5757
public static final String COLORANT_INTENSITIES_INVALID = "Some of colorant intensities are invalid: they are bigger than 1 or less than 0. We will force them to become 1 or 0 respectively.";
5858
public static final String COLOR_NOT_FOUND = "Color \"{0}\" not found.";
5959
public static final String COLOR_NOT_PARSED = "Color \"{0}\" was not parsed. It has invalid value. Defaulting to black color.";

kernel/src/main/java/com/itextpdf/kernel/color/DeviceRgb.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ public DeviceRgb(float r, float g, float b) {
118118

119119
/**
120120
* Create DeviceRGB color from R, G, B values of java.awt.Color
121-
* Note, that alpha chanel is ignored
121+
* <br/>
122+
* Note, that alpha chanel is ignored, but opacity still can be achieved
123+
* in some places by using 'setOpacity' method or 'TransparentColor' class.
122124
*
123125
* @param color the color which RGB values are used
124126
*/

0 commit comments

Comments
 (0)