Loading ...
Sorry, an error occurred while loading the content.

Re: [XSL-FO] rgb-icc(255, 0, 0, cmyk,0,0 ,0,0) Problem!!

Expand Messages
  • G. Ken Holman
    ... The first three arguments are, respectively, red, green and blue (hence the name of the function). Convert the decimal numbers to two-digit hexadecimal
    Message 1 of 2 , Oct 23, 2004
    • 0 Attachment
      At 2004-10-23 12:49 +0530, heT wrote:
      >I am converting FO to HTML, all is working fine except the color part,
      >problem is the format of color for my FO is rgb-icc(255, 0, 0, cmyk,0,0
      >,0,0) and HTML cant understand this any idea how to make it
      >HTML-understandable??

      The first three arguments are, respectively, red, green and blue (hence the
      name of the function). Convert the decimal numbers to two-digit
      hexadecimal numbers, concatenate them and add an octothorpe.

      255,0,0 becomes #ff0000

      1,2,3 becomes #010203

      128,128,128 becomes #808080

      I hope this helps.

      .............................. Ken

      --
      World-wide on-site corporate, govt. & user group XML/XSL training.
      G. Ken Holman mailto:gkholman@...
      Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/
      Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
      Male Breast Cancer Awareness http://www.CraneSoftwrights.com/f/bc
      Legal business disclaimers: http://www.CraneSoftwrights.com/legal
    Your message has been successfully submitted and would be delivered to recipients shortly.