Table of Contents

Method LogFrames

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

LogFrames(string?, int, ILogWriter?)

Logs information about each frame extracted from a GIF located at the specified URL using the provided log writer.

public static void LogFrames(string? url, int maxFrames, ILogWriter? logWriter = null)

Parameters

url string

The URL of the GIF from which to extract frames. This parameter can be null, in which case no frames will be logged.

maxFrames int

The maximum number of frames to log. If the number of frames exceeds this value, only the specified number of frames will be logged.

logWriter ILogWriter

An optional log writer used to output frame information. If not specified, a default debug log writer is used.

Remarks

If no frames are available for the specified URL, a message is logged indicating the absence of frames. Each frame is logged in a separate section for clarity.