PreDefined Colors vs. New Color

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

PreDefined Colors vs. New Color

Postby IDEAL Software Support » Thu Nov 18, 2004 8:15 pm

Version 3.50 Professional

I have a list of predefined colors such as this example below:

&GLOB COLOR_LTLTBLUE 16752640

Is there a way to create my own color
i.e.
&GLOB COLOR_NEWCOLOR ??????

Or did I read that this predefined set is all I have access too?

How would I convert RGB(128,255,255) to a single digit number?

Thanks,
David Hopper
Lowen Corporation
IDEAL Software Support
 
Posts: 1622
Joined: Thu Nov 18, 2004 4:03 pm

Postby IDEAL Software Support » Thu Nov 18, 2004 8:16 pm

Of course you can use any RGB color.

> How would I convert RGB(128,255,255) to a single digit number?

I don't have this in mind, but you can look it up in the internet or in the Microsoft documentation.

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1622
Joined: Thu Nov 18, 2004 4:03 pm

Postby Stéphane Bessette » Fri Dec 10, 2004 4:44 pm

RGB color = RED + (GREEN * 256) + (BLUE * 256 * 256)
Stéphane Bessette
 
Posts: 9
Joined: Fri Dec 10, 2004 4:35 pm

Postby Patrick » Mon Apr 27, 2009 6:35 pm

Thank you Stephane That worked great!

For a light grey background color RGB(230,230,230), I used:

#vpe.BkgColor = 230 + (230 * 256) + (230 * 256 * 256)
Patrick
 
Posts: 23
Joined: Thu Mar 12, 2009 5:44 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 96 guests