Merge pull request #108 from igniuss/patch-1

Added AddScreenshotToLibrary
This commit is contained in:
Garry Newman 2018-02-01 19:21:51 +00:00 committed by GitHub
commit 59d21a7efb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,5 +66,15 @@ public unsafe void Write( byte[] rgbData, int width, int height )
client.native.screenshots.WriteScreenshot( (IntPtr) ptr, (uint) rgbData.Length, width, height ); client.native.screenshots.WriteScreenshot( (IntPtr) ptr, (uint) rgbData.Length, width, height );
} }
} }
public unsafe void AddScreenshotToLibrary( string filename, string thumbnailFilename, int width, int height)
{
client.native.screenshots.AddScreenshotToLibrary(filename, thumbnailFilename, width, height);
}
public unsafe void AddScreenshotToLibrary( string filename, int width, int height)
{
client.native.screenshots.AddScreenshotToLibrary(filename, null, width, height);
}
} }
} }