예제 #1
0
 internal void Write(ColorBookWriter writer)
 {
     this.FixCode();
     writer.Write(this.Name);
     writer.Write(Encoding.ASCII.GetBytes(this.Code));
     writer.Write((BaseColorComponent)this.Components);
 }
예제 #2
0
 internal override void Write(ColorBookWriter writer)
 {
     writer.Write((byte)(255 - (this.Cyan * 2.55d)));
     writer.Write((byte)(255 - (this.Magenta * 2.55d)));
     writer.Write((byte)(255 - (this.Yellow * 2.55d)));
     writer.Write((byte)(255 - (this.Key * 2.55d)));
 }
예제 #3
0
 internal override void Write(ColorBookWriter writer)
 {
     writer.Write(this.Red);
     writer.Write(this.Green);
     writer.Write(this.Blue);
 }
 internal abstract void Write(ColorBookWriter writer);
예제 #5
0
 internal override void Write(ColorBookWriter writer)
 {
     writer.Write((byte)(this.L * 2.55d));
     writer.Write((byte)(this.a + 128));
     writer.Write((byte)(this.b + 128));
 }