public static extern int WebPPictureRescale(ref WebPPicture pic, int width, int height);
public static extern int WebPPictureView(ref WebPPicture src, int left, int top, int width, int height, ref WebPPicture dst);
public static extern int WebPPictureIsView(ref WebPPicture picture);
public static extern int WebPPictureDistortion(ref WebPPicture src, ref WebPPicture reference, int metric_type, ref float result);
public static extern int WebPPictureCrop(ref WebPPicture picture, int left, int top, int width, int height);
public static extern int WebPPictureYUVAToARGB(ref WebPPicture picture);
public static extern int WebPPictureCopy(ref WebPPicture src, ref WebPPicture dst);
public static extern int WebPPictureInitInternal(ref WebPPicture param0, int param1);
public static extern int WebPPictureAlloc(ref WebPPicture picture);
/// <summary> /// Should always be called, to initialize the structure. Returns false in case /// of version mismatch. WebPPictureInit() must have succeeded before using the /// 'picture' object. /// Note that, by default, use_argb is false and colorspace is WEBP_YUV420. /// </summary> /// <param name="picture"></param> /// <returns></returns> public static int WebPPictureInit(ref WebPPicture picture) { return(NativeBindings.WebPPictureInitInternal(ref picture, WEBP_ENCODER_ABI_VERSION)); }
public static extern int WebPMemoryWrite([InAttribute()] IntPtr data, UIntPtr data_size, ref WebPPicture picture);
public static extern int WebPEncode(ref WebPConfig config, ref WebPPicture picture);
public static extern int WebPPictureHasTransparency(ref WebPPicture picture);
public static extern void WebPCleanupTransparentArea(ref WebPPicture picture);
public static extern int WebPPictureImportRGBX(ref WebPPicture picture, [InAttribute()] IntPtr rgbx, int rgbx_stride);
public static extern void WebPPictureFree(ref WebPPicture picture);
public static extern int WebPPictureImportBGR(ref WebPPicture picture, [InAttribute()] IntPtr bgr, int bgr_stride);
public static extern int WebPPictureARGBToYUVA(ref WebPPicture picture, WebPEncCSP colorspace);