/// <summary> /// Unloads the image chunk's image /// </summary> internal void UnloadImageChunk() { ChunkWebPageSnapshot chunk = FindChunkByType <ChunkWebPageSnapshot>(); if (chunk != null) { chunk.UnloadImages(); } }
/// <summary> /// Create the image chunk and feed it our image /// </summary> /// <param name="_imagesWebPage"></param> internal void CreateImageChunk(uint _imageStartIndex, Rectangle[] _contentRectangles, ImageFile[] _imagesWebPage, ImageFile.FILE_FORMAT _targetFormat) { ChunkWebPageSnapshot chunk = FindChunkByType <ChunkWebPageSnapshot>(); if (chunk == null) { chunk = new ChunkWebPageSnapshot(this, _imageStartIndex, _contentRectangles, _imagesWebPage, _targetFormat); } else { chunk.UpdateImages(_imageStartIndex, _contentRectangles, _imagesWebPage, _targetFormat); } }
private void NotifyWebPageImageChanged(ChunkWebPageSnapshot _caller) { WebPageImageChanged?.Invoke(_caller.OwnerFiche); }