/// <summary>Function to write out the specifics of the font brush data to a file writer.</summary> /// <param name="writer">The writer used to write the brush data.</param> internal override void WriteBrushData(GorgonBinaryWriter writer) { writer.Write(Angle); writer.Write(ScaleAngle); writer.Write(GammaCorrection); writer.Write(Interpolation.Count); for (int i = 0; i < Interpolation.Count; ++i) { GorgonGlyphBrushInterpolator interp = Interpolation[i]; writer.Write(interp.Weight); writer.Write(interp.Color.ToARGB()); } }
/// <summary>Function to write out the specifics of the font brush data to a file writer.</summary> /// <param name="writer">The writer used to write the brush data.</param> internal override void WriteBrushData(GorgonBinaryWriter writer) { writer.Write((int)WrapMode); writer.Write(Points.Count); for (int i = 0; i < Points.Count; ++i) { writer.WriteValue(Points[i]); } writer.Write(BlendFactors.Count); for (int i = 0; i < BlendFactors.Count; ++i) { writer.Write(BlendFactors[i]); } writer.Write(BlendPositions.Count); for (int i = 0; i < BlendPositions.Count; ++i) { writer.Write(BlendPositions[i]); } writer.Write(CenterColor.ToARGB()); writer.WriteValue(CenterPoint); writer.WriteValue(FocusScales); writer.Write(Interpolation.Count); for (int i = 0; i < Interpolation.Count; ++i) { GorgonGlyphBrushInterpolator interp = Interpolation[i]; writer.Write(interp.Weight); writer.Write(interp.Color.ToARGB()); } writer.Write(SurroundColors.Count); for (int i = 0; i < SurroundColors.Count; ++i) { writer.Write(SurroundColors[i].ToARGB()); } }