GifImage.RemoveBlock

GifImage.RemoveBlock method

Removing a GIF block removes specific data from the image, offering the ability to clean up or modify the image structure. This method enables you to remove unwanted or unnecessary blocks, optimizing the GIF image for efficient storage. Use this functionality to eliminate outdated information from the image while preserving its integrity and quality.

public void RemoveBlock(IGifBlock block)
ParameterTypeDescription
blockIGifBlockThe block to remove.

Remarks

Note: do not forget to Dispose the block if you will not add it to some other GifImage.

See Also