public LabColor(PdfLabColor labColorSpace, float l, float a, float b) : base(ExtendedColor.TYPE_LAB) { this.labColorSpace = labColorSpace; this.l = l; this.a = a; this.b = b; BaseColor altRgbColor = labColorSpace.Lab2Rgb(l, a, b); SetValue(altRgbColor.R, altRgbColor.G, altRgbColor.B, 255); }
public virtual BaseColor ToRgb() { return(labColorSpace.Lab2Rgb(l, a, b)); }