示例#1
3
 public static extern int WebPValidateConfig(ref WebPConfig config);
示例#2
0
 public static extern int WebPEncode(ref WebPConfig config, ref WebPPicture picture);
示例#3
0
 /// <summary>
 /// This function will initialize the configuration according to a predefined
 /// set of parameters (referred to by 'preset') and a given quality factor.
 /// This function can be called as a replacement to WebPConfigInit(). Will return false in case of error.
 /// </summary>
 /// <param name="config"></param>
 /// <param name="preset"></param>
 /// <param name="quality"></param>
 /// <returns></returns>
 public static int WebPConfigPreset(ref WebPConfig config, WebPPreset preset, float quality)
 {
     return(NativeMethods.WebPConfigInitInternal(ref config, preset, quality, WEBP_ENCODER_ABI_VERSION));
 }
示例#4
0
 public static extern int WebPConfigInitInternal(ref WebPConfig param0, WebPPreset param1, float param2, int param3);
示例#5
0
 /// <summary>
 /// This function will initialize the configuration according to a predefined
 /// set of parameters (referred to by 'preset') and a given quality factor.
 /// This function can be called as a replacement to WebPConfigInit(). Will return false in case of error.
 /// </summary>
 /// <param name="config"></param>
 /// <param name="preset"></param>
 /// <param name="quality"></param>
 /// <returns></returns>
 public static int WebPConfigPreset(ref WebPConfig config, WebPPreset preset, float quality)
 {
     return NativeMethods.WebPConfigInitInternal(ref config, preset, quality, WEBP_ENCODER_ABI_VERSION);
 }
示例#6
0
 /// <summary>
 /// Should always be called, to initialize a fresh WebPConfig structure before
 /// modification. Returns false in case of version mismatch. WebPConfigInit()
 /// must have succeeded before using the 'config' object.
 /// Note that the default values are lossless=0 and quality=75.
 /// </summary>
 /// <param name="config"></param>
 /// <returns></returns>
 public static int WebPConfigInit(ref WebPConfig config)
 {
     return(NativeMethods.WebPConfigInitInternal(ref config, WebPPreset.WEBP_PRESET_DEFAULT, 75.0f, WEBP_ENCODER_ABI_VERSION));
 }
示例#7
0
 /// <summary>
 /// Should always be called, to initialize a fresh WebPConfig structure before
 /// modification. Returns false in case of version mismatch. WebPConfigInit()
 /// must have succeeded before using the 'config' object.
 /// Note that the default values are lossless=0 and quality=75.
 /// </summary>
 /// <param name="config"></param>
 /// <returns></returns>
 public static int WebPConfigInit(ref WebPConfig config)
 {
     return NativeMethods.WebPConfigInitInternal(ref config,WebPPreset.WEBP_PRESET_DEFAULT, 75.0f, WEBP_ENCODER_ABI_VERSION);
 }
示例#8
0
 public static extern int WebPEncode(ref WebPConfig config, ref WebPPicture picture);
示例#9
0
 public static extern int WebPValidateConfig(ref WebPConfig config);
示例#10
0
 public static extern int WebPConfigInitInternal(ref WebPConfig param0, WebPPreset param1, float param2, int param3);
示例#11
0
 public static extern int WebPConfigLosslessPreset(ref WebPConfig config);