You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
31 lines
721 B
C#
31 lines
721 B
C#
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Gauntlet.SelfTest
|
|
{
|
|
class CreateGif : BaseNode
|
|
{
|
|
public override void OnTick()
|
|
{
|
|
string ImagePath = Path.Combine(Environment.CurrentDirectory, @"Engine\Source\Programs\AutomationTool\NotForLicensees\Gauntlet\SelfTest\TestData\GifTest");
|
|
|
|
string OutPath = Path.Combine(Path.GetTempPath(), "Test.gif");
|
|
|
|
bool Success = Utils.Image.SaveImagesAsGif(ImagePath, OutPath);
|
|
|
|
if (Success)
|
|
{
|
|
File.Delete(OutPath);
|
|
}
|
|
|
|
MarkComplete(Success ? TestResult.Passed : TestResult.Failed);
|
|
}
|
|
}
|
|
}
|