TypeLib Xojo support Plugin

EinhugurColors.RGBColor Class (console safe)

A class that represents RGB color and has ability to store both 8 bits per channel and 16 bits per channel.

This class has bi directional automatic conversion to and from Xojo color.

GenericColor
   RGBColor

class EinhugurColors.RGBColor

Properties

Alpha16 (console safe) Sets or gets 16bit Alpha value. (65535 = full opaque, 0 = full transparent)
Alpha8 (console safe) Sets or gets 8bit Alpha value. (255 = full opaque, 0 = full transparent)
Blue16 (console safe) Sets or gets 16bit Blue value.
Blue8 (console safe) Sets or gets 8bit Blue value.
Green16 (console safe) Sets or gets 16bit Green value.
Green8 (console safe) Sets or gets 8bit Green value.
Red16 (console safe) Sets or gets 16bit Red value.
Red8 (console safe) Sets or gets 8bit Red value.

Methods

shared From16BitComponentsCreates instance of RGBColor from 16bit components
shared From8BitComponentsCreates instance of RGBColor from 16bit components
Operator_Compare (console safe) Makes = and <> operators work to compare two instances of RGBColor.
Operator_Convert (console safe) Operator that makes Xojo color automatically convert to RGBColor.
Operator_Convert (console safe) Operator that makes RGBColor color automatically convert to Xojo Color.
ToCMYKColor (console safe) Does crude conversion to CMYKColor

Because of the automatic conversions to and from Xojo color then the following code stub is perfectly valid:

Dim c as EinhugurColors.RGBColor = &cFF0000 // Here the Xojo color automatically converts to RGBColor
Dim c2 as Color = c // Here the RGBColor automatically converts to Xojo Color

Supported Platforms:

  • MacOS X Carbon
  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM