pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Ternes <KTer...@thegeneral.com>
Subject RE: Using PDColor in PDFBox 2.0.0
Date Mon, 14 Sep 2015 17:17:30 GMT
Simple.  Thank you, Tilman.

-----Original Message-----
From: Tilman Hausherr [mailto:THausherr@t-online.de] 
Sent: Monday, September 14, 2015 10:20 AM
To: users@pdfbox.apache.org
Subject: Re: Using PDColor in PDFBox 2.0.0

Am 14.09.2015 um 16:36 schrieb Kevin Ternes:
> I do not see how to instate a PDColor.  In particular, what goes in to the PDColorSpace
field of the constructor?
> For example:
>
> float[] greenComponents = {0, 1, 0};
> ColorSpace colorSpace = ????
> PDColor pdColorGreen = new PDColor(greenComponents, colorSpace);

PDColor green = new PDColor(new float[] { 0, 1, 0 }, PDDeviceRGB.INSTANCE);


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message