Alaska Software Inc. - Basic Color Question
Username: Password:
AuthorTopic: Basic Color Question
Carlos Antonio BelingBasic Color Question
on Tue, 08 Jun 2021 16:16:13 -0300
Good day.
Please how can I get the equivalent Xbase++ RGB color of the GRA_CLR colors?

Fraternally
Beling
Edgar Borger Re: Basic Color Question
on Wed, 09 Jun 2021 10:27:49 -0300
Ola Carlos,

have a look at:

GraGetRGBIntensity() and GraMakeRGBColor()

Abraços,
Edgar


Em 08/06/2021 16:16, Carlos Antonio Beling escreveu:
> Good day.
> Please how can I get the equivalent Xbase++ RGB color of the GRA_CLR 
> colors?
> 
> Fraternally
> Beling
Carlos Antonio BelingRe: Basic Color Question
on Wed, 11 Aug 2021 16:38:24 -0300
Hi Edgar.
Good day.
Many thanks.
GraGetRgbIntensity(GRA_CLR...) returns NIL

Fraternally
Beling

On 09/06/2021 10:27, Edgar Borger wrote:
> Ola Carlos,
> 
> have a look at:
> 
> GraGetRGBIntensity() and GraMakeRGBColor()
> 
> Abraços,
> Edgar
> 
> 
> Em 08/06/2021 16:16, Carlos Antonio Beling escreveu:
>> Good day.
>> Please how can I get the equivalent Xbase++ RGB color of the GRA_CLR 
>> colors?
>>
>> Fraternally
>> Beling
Jim LeeRe: Basic Color Question
on Sat, 14 Aug 2021 01:14:17 +0200
> GraGetRgbIntensity(GRA_CLR...) returns NIL

RGB Color does not work wit CRT where you have 16 Color only



---
Diese E-Mail wurde von AVG auf Viren geprüft.
http://www.avg.com
Andreas Gehrs-Pahl
Re: Basic Color Question
on Sun, 15 Aug 2021 05:13:13 -0400
Carlos,

As I posted in this newsgroup on 2011-08-05 in response to a similar 
question from Jimmy, with the subject "GRA_CLR_* Color to RGB ?":

To convert Xbase++ (and Windows) Color Constants to RGB values, use the 
following:

AutomationTranslateColor(AutomationTranslateColor(nConstant, .f.), .t.) 

This will handle explicit Xbase++ Graphic color constants like GRA_CLR_*, 
as well as (Windows) System color constants, like the XBPSYSCLR_* values 
which are negative.

Hope that helps,

Andreas

Andreas Gehrs-Pahl
Absolute Software, LLC

phone: (989) 723-9927
email: Andreas@AbsoluteSoftwareLLC.com
web:   http://www.AbsoluteSoftwareLLC.com
[L]:   https://www.LinkedIn.com/in/AndreasGehrsPahl
[F]:   https://www.FaceBook.com/AbsoluteSoftwareLLC
Carlos Antonio BelingRe: Basic Color Question
on Tue, 17 Aug 2021 14:59:28 -0300
Hi Andreas:
good day.
Many thanks again.

Fraternally
Beling

On 15/08/2021 06:13, Andreas Gehrs-Pahl wrote:
> Carlos,
> 
> As I posted in this newsgroup on 2011-08-05 in response to a similar
> question from Jimmy, with the subject "GRA_CLR_* Color to RGB ?":
> 
> To convert Xbase++ (and Windows) Color Constants to RGB values, use the
> following:
> 
> AutomationTranslateColor(AutomationTranslateColor(nConstant, .f.), .t.)
> 
> This will handle explicit Xbase++ Graphic color constants like GRA_CLR_*,
> as well as (Windows) System color constants, like the XBPSYSCLR_* values
> which are negative.
> 
> Hope that helps,
> 
> Andreas
>