/** * Changes the current color for stroking paths (device dependent colors!). * <P> * Sets the color space to <B>DeviceRGB</B> (or the <B>DefaultRGB</B> color space), * and sets the color to use for stroking paths.</P> * <P> * Following the PDF manual, each operand must be a number between 0 (miniumum intensity) and * 1 (maximum intensity). * * @param red the intensity of red. A value between 0 and 1 * @param green the intensity of green. A value between 0 and 1 * @param blue the intensity of blue. A value between 0 and 1 */ public void setRGBColorStrokeF(final float red, final float green, final float blue) { saveColor(new BaseColor(red, green, blue), false); HelperRGB(red, green, blue); content.append(" RG").append_i(separator); }
/** * Changes the current color for filling paths (device dependent colors!). * <P> * Sets the color space to <B>DeviceRGB</B> (or the <B>DefaultRGB</B> color space), * and sets the color to use for filling paths.</P> * <P> * Following the PDF manual, each operand must be a number between 0 (minimum intensity) and * 1 (maximum intensity).</P> * * @param red the intensity of red. A value between 0 and 1 * @param green the intensity of green. A value between 0 and 1 * @param blue the intensity of blue. A value between 0 and 1 */ public void setRGBColorFillF(final float red, final float green, final float blue) { saveColor(new BaseColor(red, green, blue), true); HelperRGB(red, green, blue); content.append(" rg").append_i(separator); }
/** * Changes the current color for stroking paths (device dependent colors!). * <P> * Sets the color space to <B>DeviceRGB</B> (or the <B>DefaultRGB</B> color space), * and sets the color to use for stroking paths.</P> * <P> * Following the PDF manual, each operand must be a number between 0 (miniumum intensity) and * 1 (maximum intensity). * * @param red the intensity of red. A value between 0 and 1 * @param green the intensity of green. A value between 0 and 1 * @param blue the intensity of blue. A value between 0 and 1 */ public void setRGBColorStrokeF(final float red, final float green, final float blue) { saveColor(new BaseColor(red, green, blue), false); HelperRGB(red, green, blue); content.append(" RG").append_i(separator); }
/** * Changes the current color for filling paths (device dependent colors!). * <P> * Sets the color space to <B>DeviceRGB</B> (or the <B>DefaultRGB</B> color space), * and sets the color to use for filling paths.</P> * <P> * Following the PDF manual, each operand must be a number between 0 (minimum intensity) and * 1 (maximum intensity).</P> * * @param red the intensity of red. A value between 0 and 1 * @param green the intensity of green. A value between 0 and 1 * @param blue the intensity of blue. A value between 0 and 1 */ public void setRGBColorFillF(final float red, final float green, final float blue) { saveColor(new BaseColor(red, green, blue), true); HelperRGB(red, green, blue); content.append(" rg").append_i(separator); }
/** * Changes the current color for filling paths (device dependent colors!). * <P> * Sets the color space to <B>DeviceRGB</B> (or the <B>DefaultRGB</B> color space), * and sets the color to use for filling paths.</P> * <P> * This method is described in the 'Portable Document Format Reference Manual version 1.3' * section 8.5.2.1 (page 331).</P> * <P> * Following the PDF manual, each operand must be a number between 0 (minimum intensity) and * 1 (maximum intensity). This method however accepts only integers between 0x00 and 0xFF.</P> * * @param red the intensity of red * @param green the intensity of green * @param blue the intensity of blue */ public void setRGBColorFill(final int red, final int green, final int blue) { saveColor(new BaseColor(red, green, blue), true); HelperRGB((float) (red & 0xFF) / 0xFF, (float) (green & 0xFF) / 0xFF, (float) (blue & 0xFF) / 0xFF); content.append(" rg").append_i(separator); }
/** * Changes the current color for stroking paths (device dependent colors!). * <P> * Sets the color space to <B>DeviceRGB</B> (or the <B>DefaultRGB</B> color space), * and sets the color to use for stroking paths.</P> * <P> * This method is described in the 'Portable Document Format Reference Manual version 1.3' * section 8.5.2.1 (page 331).</P> * Following the PDF manual, each operand must be a number between 0 (minimum intensity) and * 1 (maximum intensity). This method however accepts only integers between 0x00 and 0xFF. * * @param red the intensity of red * @param green the intensity of green * @param blue the intensity of blue */ public void setRGBColorStroke(final int red, final int green, final int blue) { saveColor(new BaseColor(red, green, blue), false); HelperRGB((float) (red & 0xFF) / 0xFF, (float) (green & 0xFF) / 0xFF, (float) (blue & 0xFF) / 0xFF); content.append(" RG").append_i(separator); }
/** * Changes the current color for filling paths (device dependent colors!). * <P> * Sets the color space to <B>DeviceRGB</B> (or the <B>DefaultRGB</B> color space), * and sets the color to use for filling paths.</P> * <P> * This method is described in the 'Portable Document Format Reference Manual version 1.3' * section 8.5.2.1 (page 331).</P> * <P> * Following the PDF manual, each operand must be a number between 0 (minimum intensity) and * 1 (maximum intensity). This method however accepts only integers between 0x00 and 0xFF.</P> * * @param red the intensity of red * @param green the intensity of green * @param blue the intensity of blue */ public void setRGBColorFill(final int red, final int green, final int blue) { saveColor(new BaseColor(red, green, blue), true); HelperRGB((float) (red & 0xFF) / 0xFF, (float) (green & 0xFF) / 0xFF, (float) (blue & 0xFF) / 0xFF); content.append(" rg").append_i(separator); }
/** * Changes the current color for stroking paths (device dependent colors!). * <P> * Sets the color space to <B>DeviceRGB</B> (or the <B>DefaultRGB</B> color space), * and sets the color to use for stroking paths.</P> * <P> * This method is described in the 'Portable Document Format Reference Manual version 1.3' * section 8.5.2.1 (page 331).</P> * Following the PDF manual, each operand must be a number between 0 (minimum intensity) and * 1 (maximum intensity). This method however accepts only integers between 0x00 and 0xFF. * * @param red the intensity of red * @param green the intensity of green * @param blue the intensity of blue */ public void setRGBColorStroke(final int red, final int green, final int blue) { saveColor(new BaseColor(red, green, blue), false); HelperRGB((float) (red & 0xFF) / 0xFF, (float) (green & 0xFF) / 0xFF, (float) (blue & 0xFF) / 0xFF); content.append(" RG").append_i(separator); }