예제 #1
0
 /// <override></override>
 protected override void LoadFieldsCore(IRepositoryReader reader, int version)
 {
     base.LoadFieldsCore(reader, version);
     gluePointPos.X = reader.ReadInt32();
     gluePointPos.Y = reader.ReadInt32();
     if (version >= 3)
     {
         maintainOrientation = reader.ReadBool();
     }
 }
 /// <override></override>
 protected override void LoadFieldsCore(IRepositoryReader reader, int version)
 {
     base.LoadFieldsCore(reader, version);
     imageLayout = (ImageLayoutMode)reader.ReadByte();
     imageTransparency = reader.ReadByte();
     imageGamma = reader.ReadFloat();
     compressionQuality = reader.ReadByte();
     imageGrayScale = reader.ReadBool();
     string name = reader.ReadString();
     Image img = reader.ReadImage();
     if (name != null && img != null)
         image = new NamedImage(img, name);
     transparentColor = Color.FromArgb(reader.ReadInt32());
 }
예제 #3
0
 /// <override></override>
 protected override void LoadFieldsCore(IRepositoryReader reader, int version)
 {
     base.LoadFieldsCore(reader, version);
     AutoSize = reader.ReadBool();
 }
예제 #4
0
파일: Diagram.cs 프로젝트: LudovicT/NShape
 void IEntity.LoadFields(IRepositoryReader reader, int version)
 {
     name = reader.ReadString();
     if (version >= 3) title = reader.ReadString();
     if (version >= 4) securityDomainName = reader.ReadChar();
     size.Width = reader.ReadInt32();
     size.Height = reader.ReadInt32();
     backColor = Color.FromArgb(reader.ReadInt32());
     targetColor = Color.FromArgb(reader.ReadInt32());
     string imgName = reader.ReadString();
     Image img = reader.ReadImage();
     if (img != null) backImage = new NamedImage(img, imgName);
     imageLayout = (ImageLayoutMode)reader.ReadByte();
     imageGamma = reader.ReadFloat();
     imageTransparency = reader.ReadByte();
     imageGrayScale = reader.ReadBool();
     imageTransparentColor = Color.FromArgb(reader.ReadInt32());
 }
예제 #5
0
		/// <override></override>
		protected override void LoadFieldsCore(IRepositoryReader reader, int version) {
			base.LoadFieldsCore(reader, version);
			gluePointPos.X = reader.ReadInt32();
			gluePointPos.Y = reader.ReadInt32();
			if (version > 2) maintainOrientation = reader.ReadBool();
		}
예제 #6
0
		/// <override></override>
		protected override void LoadFieldsCore(IRepositoryReader reader, int version) {
			base.LoadFieldsCore(reader, version);
			AutoSize = reader.ReadBool();
		}