I’m playing with coloring border colors on a DynaPDF table and I found this:
SetborderColor.
I found this useful.
But I found that ARE NOT RGB COLORS.
For example, I have this RGB color: 146,216,230
But when I put it, I got Black, but when I play with another combination of colors, ex. 100,50,100
I got colors, well not the color that I want, but I got a Purple color
call tablaPDF.SetBorderColor(AllRows, AllColumns, 102, 204, 255).
Am I Missing something to use RGB colors as BorderColor?
Yes, with channels() as integer, the parenthesis means it’s an array of integers.
Without looking at any example projects, I would assume it’s in standard RGB order.
dim ariMyColor(2) as Integer = Array(146, 216, 230)
call oTable.SetBorderColor(-1, -1, ariMyColor)
[quote=317001:@Tim Parnell]Yes, with channels() as integer, the parenthesis means it’s an array of integers.
Without looking at any example projects, I would assume it’s in standard RGB order.
dim ariMyColor(2) as Integer = Array(146, 216, 230)
call oTable.SetBorderColor(-1, -1, ariMyColor)[/quote]
[quote=317001:@Tim Parnell]dim ariMyColor(2) as Integer = Array(146, 216, 230)
call oTable.SetBorderColor(-1, -1, ariMyColor)[/quote]
No, It doesn’t work for me:
SetBorderColor(Row as Integer, Column as Integer, paramarray channels as integer) as boolean
SetBorderColor(Row as Integer, Column as Integer, channels() as integer, ExtColorSpace as Integer = 0, ColorSpaceHandle as integer = 0) as booleanSetBorderColorValue(Row as Integer, Column as Integer, TPDFColorSpace as Integer, ColorValue as UInt32) as boolean
SetBorderColorFloat(Row as Integer, Column as Integer, channels() as double, ExtColorSpace as Integer = 0, ColorSpaceHandle as integer = 0) as boolean
SetBorderColorFloat(Row as Integer, Column as Integer, paramarray channels as double) as boolean
so with channels as integer, you pass the integer values, but you need to define a color space of course.
The version where you pass ExtColorSpace than allows you to specify RGB as color space.
SetBorderColorFloat does the same, but with floating point numbers. There the range is usually 0 to 1.
BUT… surprisingly (because of the -1 , -1 parameters) , it only affects the line around the outside of the table.
There are other calls to set HorizontalColor and VerticalColor if you want to affect the gridlines.