|
CMYK color space |
Posted by Greg on Mar-09-2010 23:50 |
|
Hi,
Does ChartDirector support the CMYK color space?
I would like to generate a jpeg image with CMYK color values.
Regards,
Greg |
Re: CMYK color space |
Posted by Peter Kwan on Mar-10-2010 00:42 |
|
Hi Greg,
Unluckily, ChartDirector cannot generate images using the CMYK color space. ChartDirector can only output in RGB color space. You may need to use a third party tool to convert from RGB to CMYK.
Regards
Peter Kwan |
Re: CMYK color space |
Posted by Jamie Pocock on Apr-17-2010 05:46 |
|
I was wasting time with this aswell so I wrote this little routine to get the colors in English.
Try this (Its in VB6)
Public Color As ColorsX
Type ColorsX
Black As String
Gray(1 To 4) As String
Yellow(1 To 4) As String
Red(1 To 4) As String
Blue(1 To 4) As String
Green(1 To 4) As String
Brown(1 To 4) As String
White As String
End Type
Public Sub SetColorPallette()
With Color
.Black = "&H000000"
.White = "&HFFFFFF"
.Gray(1) = "&HCCCCCC"
.Gray(2) = "&H999999"
.Gray(3) = "&H666666"
.Gray(4) = "&H333333"
.Yellow(1) = "&HFFFF99"
.Yellow(2) = "&HFFFF66"
.Yellow(3) = "&HFFFF33"
.Yellow(4) = "&HFFFF00"
.Red(1) = "&HFF0099"
.Red(2) = "&HFF0066"
.Red(3) = "&HFF0033"
.Red(4) = "&HFF0000"
.Blue(1) = "&H0099FF"
.Blue(2) = "&H0066FF"
.Blue(3) = "&H0033FF"
.Blue(4) = "&H0000FF"
.Green(1) = "&H99FF99"
.Green(2) = "&H99FF66"
.Green(3) = "&H99FF33"
.Green(4) = "&H99FF00"
.Brown(1) = "&H009999"
.Brown(2) = "&H009966"
.Brown(3) = "&H009933"
.Brown(4) = "&H009900"
End With
End Sub
So if you want a dark brown just use
Color.Brown(4)
a light brown would be
Color.Brown(1)
Simple yes, you may want to add some more colors to the palette, but this was all I needed.
Jamie |
Re: CMYK color space |
Posted by Jamie Pocock on Apr-17-2010 05:46 |
|
I was wasting time with this aswell so I wrote this little routine to get the colors in English.
Try this (Its in VB6)
Public Color As ColorsX
Type ColorsX
Black As String
Gray(1 To 4) As String
Yellow(1 To 4) As String
Red(1 To 4) As String
Blue(1 To 4) As String
Green(1 To 4) As String
Brown(1 To 4) As String
White As String
End Type
Public Sub SetColorPallette()
With Color
.Black = "&H000000"
.White = "&HFFFFFF"
.Gray(1) = "&HCCCCCC"
.Gray(2) = "&H999999"
.Gray(3) = "&H666666"
.Gray(4) = "&H333333"
.Yellow(1) = "&HFFFF99"
.Yellow(2) = "&HFFFF66"
.Yellow(3) = "&HFFFF33"
.Yellow(4) = "&HFFFF00"
.Red(1) = "&HFF0099"
.Red(2) = "&HFF0066"
.Red(3) = "&HFF0033"
.Red(4) = "&HFF0000"
.Blue(1) = "&H0099FF"
.Blue(2) = "&H0066FF"
.Blue(3) = "&H0033FF"
.Blue(4) = "&H0000FF"
.Green(1) = "&H99FF99"
.Green(2) = "&H99FF66"
.Green(3) = "&H99FF33"
.Green(4) = "&H99FF00"
.Brown(1) = "&H009999"
.Brown(2) = "&H009966"
.Brown(3) = "&H009933"
.Brown(4) = "&H009900"
End With
End Sub
So if you want a dark brown just use
Color.Brown(4)
a light brown would be
Color.Brown(1)
Simple yes, you may want to add some more colors to the palette, but this was all I needed.
Jamie |
|