internal static GMSpriteImage FromExisting(Guid id, GMSpriteFrame frame, GMSpriteImageLayer layer) { return(new GMSpriteImage(frame, layer) { Id = id }); }
internal static GMSpriteImage Create(GMSpriteFrame frame, GMSpriteImageLayer layer) { return(new GMSpriteImage(frame, layer) { Id = Guid.NewGuid(), image = new Bitmap(frame.Sprite.Width, frame.Sprite.Height) }); }
private GMSpriteImage(GMSpriteFrame frame, GMSpriteImageLayer layer) { if (frame == null) { throw new ArgumentNullException(nameof(frame)); } Frame = frame; Layer = layer; image = null; }