Table of Contents

Class WebPInfo

Namespace
Imazen.WebP
Assembly
Imazen.WebP.dll

Static utility class for probing WebP bitstream features without full decoding.

public static class WebPInfo
Inheritance
WebPInfo
Inherited Members

Methods

GetImageInfo(byte[])

Retrieves detailed bitstream features (dimensions, alpha, animation, format).

public static WebPImageInfo GetImageInfo(byte[] data)

Parameters

data byte[]

Returns

WebPImageInfo

GetImageInfo(nint, long)

Retrieves detailed bitstream features from an IntPtr.

public static WebPImageInfo GetImageInfo(nint data, long length)

Parameters

data nint
length long

Returns

WebPImageInfo

TryGetSize(byte[], out int, out int)

Retrieves basic header information (width, height) from WebP data. Returns false if the header is invalid.

public static bool TryGetSize(byte[] data, out int width, out int height)

Parameters

data byte[]
width int
height int

Returns

bool