/** * Changes the current color for filling paths (device dependent colors!). * <P> * Sets the color space to <B>DeviceCMYK</B> (or the <B>DefaultCMYK</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 (no ink) and * 1 (maximum ink).</P> * * @param cyan the intensity of cyan. A value between 0 and 1 * @param magenta the intensity of magenta. A value between 0 and 1 * @param yellow the intensity of yellow. A value between 0 and 1 * @param black the intensity of black. A value between 0 and 1 */ public void setCMYKColorFillF(final float cyan, final float magenta, final float yellow, final float black) { saveColor(new CMYKColor(cyan, magenta, yellow, black), true); HelperCMYK(cyan, magenta, yellow, black); content.append(" k").append_i(separator); }
/** * Changes the current color for filling paths (device dependent colors!). * <P> * Sets the color space to <B>DeviceCMYK</B> (or the <B>DefaultCMYK</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 (no ink) and * 1 (maximum ink).</P> * * @param cyan the intensity of cyan. A value between 0 and 1 * @param magenta the intensity of magenta. A value between 0 and 1 * @param yellow the intensity of yellow. A value between 0 and 1 * @param black the intensity of black. A value between 0 and 1 */ public void setCMYKColorFillF(final float cyan, final float magenta, final float yellow, final float black) { saveColor(new CMYKColor(cyan, magenta, yellow, black), true); HelperCMYK(cyan, magenta, yellow, black); content.append(" k").append_i(separator); }
/** * Changes the current color for stroking paths (device dependent colors!). * <P> * Sets the color space to <B>DeviceCMYK</B> (or the <B>DefaultCMYK</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 cyan the intensity of cyan. A value between 0 and 1 * @param magenta the intensity of magenta. A value between 0 and 1 * @param yellow the intensity of yellow. A value between 0 and 1 * @param black the intensity of black. A value between 0 and 1 */ public void setCMYKColorStrokeF(final float cyan, final float magenta, final float yellow, final float black) { saveColor(new CMYKColor(cyan, magenta, yellow, black), false); HelperCMYK(cyan, magenta, yellow, black); content.append(" K").append_i(separator); }
/** * Changes the current color for stroking paths (device dependent colors!). * <P> * Sets the color space to <B>DeviceCMYK</B> (or the <B>DefaultCMYK</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 cyan the intensity of cyan. A value between 0 and 1 * @param magenta the intensity of magenta. A value between 0 and 1 * @param yellow the intensity of yellow. A value between 0 and 1 * @param black the intensity of black. A value between 0 and 1 */ public void setCMYKColorStrokeF(final float cyan, final float magenta, final float yellow, final float black) { saveColor(new CMYKColor(cyan, magenta, yellow, black), false); HelperCMYK(cyan, magenta, yellow, black); content.append(" K").append_i(separator); }