that worked. thank you very much
On Mon, Mar 13, 2017 at 8:37 PM, chitgoks wrote:
> thank you all for thebresponse
>
> i will try this out and confirm
>
>
> On Mon, 13 Mar 2017 at 8:26 PM Lachezar Dobrev wrote:
>
>> Hmm...
>>
>> 1. java.awt.Color.decode(colorStr);
>> 2. You're using int
thank you all for thebresponse
i will try this out and confirm
On Mon, 13 Mar 2017 at 8:26 PM Lachezar Dobrev wrote:
> Hmm...
>
> 1. java.awt.Color.decode(colorStr);
> 2. You're using integer division "rgb.getRed()/255" will yield 0 or
> 1, which is then cast to float. Use "getRed()/255f
Hmm...
1. java.awt.Color.decode(colorStr);
2. You're using integer division "rgb.getRed()/255" will yield 0 or
1, which is then cast to float. Use "getRed()/255f" to get a float
result.
Your integer division code will only yield a red colour with
#FF8000, which I suspect gets superimposed
> chitgoks hat am 13. März 2017 um 11:27 geschrieben:
>
>
> hi again
>
> a little assistance regarding converting hex to PDColor.
>
> please take this example #ff8000
>
> and this is my code
>
> String colorStr = "#ff8000";
> java.awt.Color rgb = new java.awt.Color(
> Integer.va
4 matches
Mail list logo