// Start is called before the first frame update void Start() { Texture2D path = this.gameObject.GetComponent <PlayerPath>().DrawPath(); Texture2D map = this.gameObject.GetComponent <MapOutput>().DrawMap(); ImageMerger.MergeImages(map, path); }
public MergeController() { _webClient = new WebClient(); _imageRepo = new ImageRepo(); _dataDownloader = new DataDownloader(); _imageMerger = new ImageMerger(); }
public void SmashRock() { GetComponent <ParticleSystem>().Stop(); GetComponent <HeartbeatAnim>().Disabled = true; Dying = true; Texture2D path = this.gameObject.GetComponent <PlayerPath>().DrawPath(); Texture2D map = this.gameObject.GetComponent <MapOutput>().DrawMap(); ImageMerger.MergeImages(map, path); GameObject.Find("EventQueue").GetComponent <DynamicQueue>().NextEvent(); }
public HttpResponseMessage GetTile(string layers, string level, int col, int row, string ext) { var images = GetTileImages(layers.Split(','), level, col, row); if (images.Count > 0) { var bytes = ImageMerger.Merge(images, ext); if (bytes != null) { var contentType = GetMediaType(ext); return(JsonResponseMessage.GetHttpResponseMessage(bytes, contentType, HttpStatusCode.OK)); } } return(new HttpResponseMessage { StatusCode = HttpStatusCode.NotFound }); }
protected override void Arrange() { options = new MergeOptions(FileNameParsePattern, false, 64, 0, 0, 0, true); merger = new ImageMerger(new MergeWithConfigurationAlgorithm(), new IConfigCreator[] { new SameImagesWithoutCropConfigCreator(), new DifferentDimeansionImageWithoutCropConfigCreator() }); }
/// <summary> /// Merges the two image textures together /// </summary> /// <param name="_botImg">The bottom image</param> /// <param name="_topImg">The top image being added on top of the bottom image</param> public static void MergeImages(Texture2D _botImg, Texture2D _topImg) { ImageMerger merger = new ImageMerger(); merger.MergeTextures(_botImg, _topImg); }
public void SetUp() { _imageMerger = new ImageMerger(); _image = new List <ImageJson> { new ImageJson { albumId = 1, id = 1, thumbnailUrl = "TestURl", title = "TestTitle", url = "TestUrl" } }; _multipleImages = new List <ImageJson> { new ImageJson { albumId = 1, id = 1, thumbnailUrl = "TestURl", title = "TestTitle", url = "TestUrl" }, new ImageJson { albumId = 1, id = 2, thumbnailUrl = "TestURl", title = "TestTitle", url = "TestUrl" }, new ImageJson { albumId = 2, id = 1, thumbnailUrl = "TestURl", title = "TestTitle", url = "TestUrl" } }; _album = new List <AlbumJson> { new AlbumJson { id = 1, title = "TestAlbumTitle", userId = 1 } }; _album2 = new List <AlbumJson> { new AlbumJson { id = 3, title = "TestAlbumTitle2", userId = 1 } }; _expectedResultForSingle = new Album { AlbumId = 1, AlbumTitle = "TestAlbumTitle", FullImageUrl = "TestUrl", PhotoId = 1, ThumbnailUrl = "TestURl", PhotoTitle = "TestTitle", UserId = 1 }; _expectedResultForMultiple = new List <Album> { new Album { AlbumId = 1, AlbumTitle = "", FullImageUrl = "TestUrl", PhotoId = 1, ThumbnailUrl = "TestURl", PhotoTitle = "TestTitle", UserId = 1 }, new Album { AlbumId = 1, FullImageUrl = "TestUrl", PhotoId = 2, ThumbnailUrl = "TestURl", PhotoTitle = "TestTitle", UserId = 1 } }; }