Example #1
0
 public ItemImage Serialize(XImage image)
 {
     return(new ItemImage()
     {
         Id = image.Id,
         X = _blockHelper.GetLeft(image),
         Y = _blockHelper.GetTop(image),
         Width = _blockHelper.GetWidth(image),
         Height = _blockHelper.GetHeight(image),
         Data = _blockHelper.GetData(image)
     });
 }