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

Alpha16Sets or gets 16bit Alpha value. (65535 = full opaque, 0 = full transparent)
Alpha8Sets or gets 8bit Alpha value. (255 = full opaque, 0 = full transparent)
Blue16Sets or gets 16bit Blue value.
Blue8Sets or gets 8bit Blue value.
Green16Sets or gets 16bit Green value.
Green8Sets or gets 8bit Green value.
Red16Sets or gets 16bit Red value.
Red8Sets or gets 8bit Red value.

Methods

shared From16BitComponentsCreates instance of RGBColor from 16bit components
shared From8BitComponentsCreates instance of RGBColor from 16bit components
Operator_CompareMakes = and <> operators work to compare two instances of RGBColor.
Operator_ConvertOperator that makes RGBColor color automatically convert to Xojo Color.
Operator_ConvertOperator that makes Xojo color automatically convert to RGBColor.
ToCMYKColorDoes 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 Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit
  • iOS