/// <inheritdoc/> public override bool Equals(IccTagDataEntry other) { return(other is IccSignatureTagDataEntry entry && this.Equals(entry)); }
/// <inheritdoc/> public override bool Equals(IccTagDataEntry other) { return(other is IccUInt32ArrayTagDataEntry entry && this.Equals(entry)); }
/// <inheritdoc/> public override bool Equals(IccTagDataEntry other) => other is IccMultiProcessElementsTagDataEntry entry && this.Equals(entry);
/// <summary> /// Writes a tag data entry (without padding) /// </summary> /// <param name="entry">The entry to write</param> /// <returns>The number of bytes written</returns> public int WriteTagDataEntry(IccTagDataEntry entry) { int count = this.WriteTagDataEntryHeader(entry.Signature); switch (entry.Signature) { case IccTypeSignature.Chromaticity: count += this.WriteChromaticityTagDataEntry((IccChromaticityTagDataEntry)entry); break; case IccTypeSignature.ColorantOrder: count += this.WriteColorantOrderTagDataEntry((IccColorantOrderTagDataEntry)entry); break; case IccTypeSignature.ColorantTable: count += this.WriteColorantTableTagDataEntry((IccColorantTableTagDataEntry)entry); break; case IccTypeSignature.Curve: count += this.WriteCurveTagDataEntry((IccCurveTagDataEntry)entry); break; case IccTypeSignature.Data: count += this.WriteDataTagDataEntry((IccDataTagDataEntry)entry); break; case IccTypeSignature.DateTime: count += this.WriteDateTimeTagDataEntry((IccDateTimeTagDataEntry)entry); break; case IccTypeSignature.Lut16: count += this.WriteLut16TagDataEntry((IccLut16TagDataEntry)entry); break; case IccTypeSignature.Lut8: count += this.WriteLut8TagDataEntry((IccLut8TagDataEntry)entry); break; case IccTypeSignature.LutAToB: count += this.WriteLutAtoBTagDataEntry((IccLutAToBTagDataEntry)entry); break; case IccTypeSignature.LutBToA: count += this.WriteLutBtoATagDataEntry((IccLutBToATagDataEntry)entry); break; case IccTypeSignature.Measurement: count += this.WriteMeasurementTagDataEntry((IccMeasurementTagDataEntry)entry); break; case IccTypeSignature.MultiLocalizedUnicode: count += this.WriteMultiLocalizedUnicodeTagDataEntry((IccMultiLocalizedUnicodeTagDataEntry)entry); break; case IccTypeSignature.MultiProcessElements: count += this.WriteMultiProcessElementsTagDataEntry((IccMultiProcessElementsTagDataEntry)entry); break; case IccTypeSignature.NamedColor2: count += this.WriteNamedColor2TagDataEntry((IccNamedColor2TagDataEntry)entry); break; case IccTypeSignature.ParametricCurve: count += this.WriteParametricCurveTagDataEntry((IccParametricCurveTagDataEntry)entry); break; case IccTypeSignature.ProfileSequenceDesc: count += this.WriteProfileSequenceDescTagDataEntry((IccProfileSequenceDescTagDataEntry)entry); break; case IccTypeSignature.ProfileSequenceIdentifier: count += this.WriteProfileSequenceIdentifierTagDataEntry((IccProfileSequenceIdentifierTagDataEntry)entry); break; case IccTypeSignature.ResponseCurveSet16: count += this.WriteResponseCurveSet16TagDataEntry((IccResponseCurveSet16TagDataEntry)entry); break; case IccTypeSignature.S15Fixed16Array: count += this.WriteFix16ArrayTagDataEntry((IccFix16ArrayTagDataEntry)entry); break; case IccTypeSignature.Signature: count += this.WriteSignatureTagDataEntry((IccSignatureTagDataEntry)entry); break; case IccTypeSignature.Text: count += this.WriteTextTagDataEntry((IccTextTagDataEntry)entry); break; case IccTypeSignature.U16Fixed16Array: count += this.WriteUFix16ArrayTagDataEntry((IccUFix16ArrayTagDataEntry)entry); break; case IccTypeSignature.UInt16Array: count += this.WriteUInt16ArrayTagDataEntry((IccUInt16ArrayTagDataEntry)entry); break; case IccTypeSignature.UInt32Array: count += this.WriteUInt32ArrayTagDataEntry((IccUInt32ArrayTagDataEntry)entry); break; case IccTypeSignature.UInt64Array: count += this.WriteUInt64ArrayTagDataEntry((IccUInt64ArrayTagDataEntry)entry); break; case IccTypeSignature.UInt8Array: count += this.WriteUInt8ArrayTagDataEntry((IccUInt8ArrayTagDataEntry)entry); break; case IccTypeSignature.ViewingConditions: count += this.WriteViewingConditionsTagDataEntry((IccViewingConditionsTagDataEntry)entry); break; case IccTypeSignature.Xyz: count += this.WriteXyzTagDataEntry((IccXyzTagDataEntry)entry); break; // V2 Types: case IccTypeSignature.TextDescription: count += this.WriteTextDescriptionTagDataEntry((IccTextDescriptionTagDataEntry)entry); break; case IccTypeSignature.CrdInfo: count += this.WriteCrdInfoTagDataEntry((IccCrdInfoTagDataEntry)entry); break; case IccTypeSignature.Screening: count += this.WriteScreeningTagDataEntry((IccScreeningTagDataEntry)entry); break; case IccTypeSignature.UcrBg: count += this.WriteUcrBgTagDataEntry((IccUcrBgTagDataEntry)entry); break; // Unsupported or unknown case IccTypeSignature.DeviceSettings: case IccTypeSignature.NamedColor: case IccTypeSignature.Unknown: default: count += this.WriteUnknownTagDataEntry(entry as IccUnknownTagDataEntry); break; } return(count); }
/// <inheritdoc/> public override bool Equals(IccTagDataEntry other) { return(other is IccNamedColor2TagDataEntry entry && this.Equals(entry)); }
/// <inheritdoc/> public override bool Equals(IccTagDataEntry other) => other is IccColorantTableTagDataEntry entry && this.Equals(entry);
/// <inheritdoc/> public override bool Equals(IccTagDataEntry other) => other is IccChromaticityTagDataEntry entry && this.Equals(entry);
/// <inheritdoc/> public override bool Equals(IccTagDataEntry other) => other is IccLut16TagDataEntry entry && this.Equals(entry);
/// <inheritdoc/> public override bool Equals(IccTagDataEntry other) => other is IccResponseCurveSet16TagDataEntry entry && this.Equals(entry);
/// <inheritdoc/> public override bool Equals(IccTagDataEntry other) { return(other is IccParametricCurveTagDataEntry entry && this.Equals(entry)); }
/// <inheritdoc/> public override bool Equals(IccTagDataEntry other) { return(other is IccMultiLocalizedUnicodeTagDataEntry entry && this.Equals(entry)); }
/// <inheritdoc/> public override bool Equals(IccTagDataEntry other) { return(other is IccMeasurementTagDataEntry entry && this.Equals(entry)); }
/// <inheritdoc/> public override bool Equals(IccTagDataEntry other) { return(other is IccColorantOrderTagDataEntry entry && this.Equals(entry)); }
/// <inheritdoc/> public override bool Equals(IccTagDataEntry other) { return(other is IccProfileSequenceIdentifierTagDataEntry entry && this.Equals(entry)); }
/// <inheritdoc/> public override bool Equals(IccTagDataEntry other) { return(other is IccViewingConditionsTagDataEntry entry && this.Equals(entry)); }