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); }
public void Move(ImageItem image, double x, double y) { image.X += x; image.Y += y; }