RaUI/Source/MyDb/WebP/WebPEncoder.cs

22 lines
583 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Text;
namespace LibwebpSharp
{
/// <summary>
///
/// </summary>
public class WebPEncoder
{
/// <summary>
/// The encoder's version number
/// </summary>
/// <returns>The version as major.minor.revision</returns>
public string GetEncoderVersion()
{
int version = Native.WebPEncoder.WebPGetEncoderVersion();
return String.Format("{0}.{1}.{2}", (version >> 16) & 0xff, (version >> 8) & 0xff, version & 0xff);
}
}
}