示例#1
0
文件: Item.cs 项目: 15831944/Sheet
 public void Serialize(StringBuilder sb, ImageItem image, string indent, ItemSerializeOptions options)
 {
     sb.Append(indent);
     sb.Append("IMAGE");
     sb.Append(options.ModelSeparator);
     sb.Append(image.Id);
     sb.Append(options.ModelSeparator);
     sb.Append(image.X);
     sb.Append(options.ModelSeparator);
     sb.Append(image.Y);
     sb.Append(options.ModelSeparator);
     sb.Append(image.Width);
     sb.Append(options.ModelSeparator);
     sb.Append(image.Height);
     sb.Append(options.ModelSeparator);
     sb.Append(_base64.ToBase64(image.Data));
     sb.Append(options.LineSeparator);
 }
示例#2
0
文件: Item.cs 项目: 15831944/Sheet
 public void Move(ImageItem image, double x, double y)
 {
     image.X += x;
     image.Y += y;
 }