Exemple #1
0
        /// <summary>
        /// Unloads the image chunk's image
        /// </summary>
        internal void   UnloadImageChunk()
        {
            ChunkWebPageSnapshot chunk = FindChunkByType <ChunkWebPageSnapshot>();

            if (chunk != null)
            {
                chunk.UnloadImages();
            }
        }
Exemple #2
0
        /// <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);
            }
        }
Exemple #3
0
 private void    NotifyWebPageImageChanged(ChunkWebPageSnapshot _caller)
 {
     WebPageImageChanged?.Invoke(_caller.OwnerFiche);
 }