protected override void WriteData(PsdBinaryWriter writer) { writer.Write(Version); writer.Write(HasRealMergedData); writer.WriteUnicodeString(ReaderName); writer.WriteUnicodeString(WriterName); writer.Write(FileVersion); }
protected override void WriteData(PsdBinaryWriter writer) { writer.Write(Version); writer.Write(HasRealMergedData); writer.WriteUnicodeString(ReaderName); writer.WriteUnicodeString(WriterName); writer.Write(FileVersion); }
protected override void WriteData(PsdBinaryWriter writer) { foreach (var channelName in ChannelNames) { writer.WriteUnicodeString(channelName); } }
public override void WriteData(PsdBinaryWriter writer) { writer.WriteAsciiChars(Key); writer.WriteUnicodeString(NameFromClassID); writer.Write(ClassID.Length == 4 ? 0 : ClassID.Length); writer.WriteAsciiChars(ClassID); }
protected override void WriteData(PsdBinaryWriter writer) { foreach (var channelName in ChannelNames) { writer.WriteUnicodeString(channelName); } }
protected override void WriteData(PsdBinaryWriter writer) { var startPosition = writer.BaseStream.Position; writer.WriteUnicodeString(Name); writer.WritePadding(startPosition, 4); }
protected override void WriteData(PsdBinaryWriter writer) { var startPosition = writer.BaseStream.Position; writer.WriteUnicodeString(Name); writer.WritePadding(startPosition, 4); }
public override void WriteData(PsdBinaryWriter writer) { if (!string.IsNullOrEmpty(Key)) { writer.WriteAsciiChars(Key); } writer.WriteUnicodeString(ClassIDName); if (ClassID.Length != 4) { writer.Write(ClassID.Length); } else { writer.Write(0); } writer.WriteAsciiChars(ClassID); writer.Write(Descriptor.Count); foreach (var pair in Descriptor) { writer.Write(pair.Key.Length == 4 ? 0 : pair.Key.Length); writer.WriteAsciiChars(pair.Key); pair.Value.WriteData(writer); } }
protected override void WriteData(PsdBinaryWriter writer) { foreach (var channelName in ChannelNames) { // We must add a null terminator because Photoshop always strips the // last character of a Unicode alpha name, even if it is not null. writer.WriteUnicodeString(channelName + "\0"); } }
public override void WriteData(PsdBinaryWriter writer) { writer.WriteAsciiChars(Key); writer.WriteUnicodeString(Text); }