SKCodecOptions.PriorFrame Property

Definition

Gets or sets a value indicating which frame, if any, the destination bitmap already contains.

public int PriorFrame { get; set; }

Property Value

Remarks

Only meaningful for multi-frame images.

If FrameIndex needs to be blended with a prior frame (as reported by SKCodec.FrameInfo[FrameIndex].RequiredFrame), the client can set this to any non-RestorePrevious frame in the range [RequiredFrame, FrameIndex) to indicate that that frame is already in the destination. ZeroInitialized is ignored in this case.

If set to -1, the codec will decode any necessary required frame(s) first.

Applies to