/// <override></override> protected override void SaveFieldsCore(IRepositoryWriter writer, int version) { base.SaveFieldsCore(writer, version); writer.WriteInt32(gluePointPos.X); writer.WriteInt32(gluePointPos.Y); if (version >= 3) { writer.WriteBool(maintainOrientation); } }
/// <override></override> protected override void SaveFieldsCore(IRepositoryWriter writer, int version) { base.SaveFieldsCore(writer, version); writer.WriteByte((byte)imageLayout); writer.WriteByte(imageTransparency); writer.WriteFloat(imageGamma); writer.WriteByte(compressionQuality); writer.WriteBool(imageGrayScale); if (NamedImage.IsNullOrEmpty(image)) { writer.WriteString(string.Empty); writer.WriteImage(null); } else { writer.WriteString(image.Name); object imgTag = image.Image.Tag; image.Image.Tag = image.Name; writer.WriteImage(image.Image); image.Image.Tag = imgTag; } writer.WriteInt32(transparentColor.ToArgb()); }
/// <override></override> protected override void SaveFieldsCore(IRepositoryWriter writer, int version) { base.SaveFieldsCore(writer, version); writer.WriteBool(AutoSize); }
void IEntity.SaveFields(IRepositoryWriter writer, int version) { writer.WriteString(name); if (version >= 3) writer.WriteString(title); if (version >= 4) writer.WriteChar(securityDomainName); writer.WriteInt32(size.Width); writer.WriteInt32(size.Height); writer.WriteInt32(BackgroundColor.ToArgb()); writer.WriteInt32(BackgroundGradientColor.ToArgb()); if (NamedImage.IsNullOrEmpty(backImage)) { writer.WriteString(string.Empty); writer.WriteImage(null); } else { writer.WriteString(backImage.Name); object imgTag = backImage.Image.Tag; backImage.Image.Tag = backImage.Name; writer.WriteImage(backImage.Image); backImage.Image.Tag = imgTag; } writer.WriteByte((byte)imageLayout); writer.WriteFloat(imageGamma); writer.WriteByte(imageTransparency); writer.WriteBool(imageGrayScale); writer.WriteInt32(imageTransparentColor.ToArgb()); }
/// <override></override> protected override void SaveFieldsCore(IRepositoryWriter writer, int version) { base.SaveFieldsCore(writer, version); writer.WriteInt32(gluePointPos.X); writer.WriteInt32(gluePointPos.Y); if (version > 2) writer.WriteBool(maintainOrientation); }