private void CreateChunk(PngWriter pngw, string svg) { PngChunkSVGI chunk = new PngChunkSVGI(pngw.ImgInfo); chunk.SetSVG(svg); chunk.Priority = true; pngw.GetChunksList().Queue(chunk); }
private string ReadSvgFromChunk() { var pngr = FileHelper.CreatePngReader(OcclusionFilePath); PngChunkSVGI chunk = (PngChunkSVGI)pngr.GetChunksList().GetById1(PngChunkSVGI.ID); pngr.End(); return(chunk?.GetSVG()); }
public override void CloneDataFromRead(PngChunk other) { PngChunkSVGI otherx = (PngChunkSVGI)other; this.svg = otherx.svg; // shallow clone, we could implement other copying }