Functions

Color Functions
 

SetForecolor(DrawXtra member, integer red, integer blue, integer green) - sets the foreground color for all drawing operations.
Example: SetForecolor(member "canvas", 255, 0, 0)

SetForecolor(DrawXtra member, integer packedColor) - sets the foreground color, using a "packed" color, for all drawing operations.
Example: SetForecolor(member "canvas", packedcolor)

GetRedColor(DrawXtra member, integer packedColor) - extracts the red channel value of a packed color.
Example: set red to GetRedColor(member "canvas", packedcolor)

GetBlueColor(DrawXtra member, integer packedColor) - extracts the blue channel value of a packed color.
Example: set blue to GetBlueColor(member "canvas", packedcolor)

GetGreenColor(DrawXtra member, integer packedColor) - extracts the green channel value of a packed color.
Example: set green to GetGreenColor(member "canvas", packedcolor)

PackColor(DrawXtra member, integer red, integer green, integer blue) - creates a packed color.
Example: set packedcolor to PackColor(member "canvas", 255, 255, 255)

IndexedToPackedColor(DrawXtra member, integer indexedColor - creates a packed color from an indexed color.
Example: set packedcolor to IndexedToPackedColor(member "canvas", 20)

PackedToIndexedColor(DrawXtra member, integer packedColor) - creates an indexed color from a packed color.
Example: set indexedcolor to PackedToIndexedColor(member "canvas", packedcolor)
Getting Started Packed Colors Properties Creating Projectors Using the Xtra in Shockwave Known Issues How to Order and Register Licensing and Availability Technical Support