Table of Contents

Class WebPFrameBlock

Namespace
Aspose.Imaging.FileFormats.Webp
Assembly
Aspose.Imaging.dll

Represents the webp blocks openers registry.

public class WebPFrameBlock : RasterCachedImage, IDisposable, IObjectWithBounds, IRasterImageArgb32PixelLoader, IRasterImageRawDataLoader, IHasXmpData, IHasMetadata, IFrame, IAnimationFrame
Inheritance
WebPFrameBlock
Implements
Inherited Members

Constructors

WebPFrameBlock(RasterImage)

Initializes a new instance of the WebPFrameBlock

class.

public WebPFrameBlock(RasterImage rasterImage)

Parameters

rasterImage RasterImage

The raster image.

WebPFrameBlock(int, int)

Initializes a new instance of the WebPFrameBlock class.

public WebPFrameBlock(int width, int height)

Parameters

width int

The width.

height int

The height.

Properties

BitsPerPixel

Gets the image bits per pixel count.

public override int BitsPerPixel { get; }

Property Value

int

The image bits per pixel count.

DisposalMethod

Gets or sets the disposal method.

public AnimationDisposalMethods DisposalMethod { get; set; }

Property Value

AnimationDisposalMethods

The disposal method.

Duration

Gets or sets the frame duration.

public short Duration { get; set; }

Property Value

short

The duration.

FrameLeft

Gets the frame left offset.

public int FrameLeft { get; }

Property Value

int

The frame left offset.

FrameTime

Gets the frame duration.

public int FrameTime { get; }

Property Value

int

The frame duration.

FrameTop

Gets the frame top offset.

public int FrameTop { get; }

Property Value

int

The frame top offset.

HasAlpha

Gets a value indicating whether this instance has alpha.

public override bool HasAlpha { get; }

Property Value

bool

true if this instance has alpha; otherwise, false.

Height

Gets the image height.

public override int Height { get; }

Property Value

int

The image height.

Left

Gets or sets the frame position left.

public short Left { get; set; }

Property Value

short

The left.

Top

Gets or sets the frame position top.

public short Top { get; set; }

Property Value

short

The top.

UseAlphaBlending

Gets or sets the value indicating whether current frame gets blended with the previous frame alpha values.

public bool UseAlphaBlending { get; set; }

Property Value

bool

true if this frame uses alpha-blending; otherwise, false.

Width

Gets the image width.

public override int Width { get; }

Property Value

int

The image width.

Methods

GetFullFrame()

Gets the full frame.

public RasterImage GetFullFrame()

Returns

RasterImage

The full frame image.

SaveData(Stream)

Saves the data.

protected override void SaveData(Stream stream)

Parameters

stream Stream

The stream to save data to.

Exceptions

NotImplementedException

UpdateDimensions(int, int)

Updates the image dimensions.

protected override void UpdateDimensions(int newWidth, int newHeight)

Parameters

newWidth int

The new image width.

newHeight int

The new image height.