Пример #1
0
        private void CreateChunk(PngWriter pngw, string svg)
        {
            PngChunkSVGI chunk = new PngChunkSVGI(pngw.ImgInfo);

            chunk.SetSVG(svg);
            chunk.Priority = true;

            pngw.GetChunksList().Queue(chunk);
        }
Пример #2
0
        private string ReadSvgFromChunk()
        {
            var pngr = FileHelper.CreatePngReader(OcclusionFilePath);

            PngChunkSVGI chunk = (PngChunkSVGI)pngr.GetChunksList().GetById1(PngChunkSVGI.ID);

            pngr.End();

            return(chunk?.GetSVG());
        }
Пример #3
0
        public override void CloneDataFromRead(PngChunk other)
        {
            PngChunkSVGI otherx = (PngChunkSVGI)other;

            this.svg = otherx.svg; // shallow clone, we could implement other copying
        }