CodeGlyphX logo
CodeGlyphX

API Reference

Struct

Rgba32

Namespace CodeGlyphX.Rendering.Png
Assembly CodeGlyphX
Base ValueType
Modifiers sealed

A simple RGBA color value.

Inheritance

  • ValueType
  • Rgba32

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Accepted by parameters

Constructors

public Rgba32(Byte r, Byte g, Byte b, Byte a = 255) #

Creates a new Rgba32.

Parameters

r System.Byte requiredposition: 0
g System.Byte requiredposition: 1
b System.Byte requiredposition: 2
a System.Byte = 255 optionalposition: 3

Properties

public Byte R { get; } #

Gets the red channel.

public Byte G { get; } #

Gets the green channel.

public Byte B { get; } #

Gets the blue channel.

public Byte A { get; } #

Gets the alpha channel.

public static Rgba32 Black { get; } #

Opaque black.

public static Rgba32 White { get; } #

Opaque white.

public static Rgba32 Transparent { get; } #

Transparent (alpha = 0).