You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by sidd <si...@in.com> on 2012/06/22 11:17:36 UTC

Apply POI Custom color using 'Hexadecimal Color Codes' provided

I have a class where I am currently using *HSSFColor/HSSFPalette *and
*XSSFColor* to set the Custom Colors. Implementation is as follows : 
for e.g. 

/font.setColor(HSSFColor.WHITE.index);/ for HSSF
or
/cs.setFillForegroundColor(xssfColor);/ for XSSF

I want to pass parameters in both the above cases for "Hexadecimal Color
Codes".

Like : for HSSF: /font.setColor(<Hexadecimal Color
Codes>)/font.setColor(getShortIndexFromHexColorCodes())

 for XSSF: cs.setFillForegroundColor(<Hexadecimal Color Codes>);/

Is there any way out to do the above thing, where I can pass Hexadecimal
Color Code and the colors are applied in HSSF and XSSF.

Please guide me and thanks in advance:)

-Siddharth-



--
View this message in context: http://apache-poi.1045710.n5.nabble.com/Apply-POI-Custom-color-using-Hexadecimal-Color-Codes-provided-tp5710279.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org