Exemple #1
0
        /// <summary>
        /// Sets physical resolution, in DPI
        /// </summary>
        /// <remarks>This is a utility method that creates and enqueues a PHYS chunk</remarks>
        /// <param name="dpix">Resolution in x</param>
        /// <param name="dpiy">Resolution in y</param>
        public void SetDpi(double dpix, double dpiy)
        {
            PngChunkPHYS c = new PngChunkPHYS(chunkList.imageInfo);

            c.SetAsDpi2(dpix, dpiy);
            QueueChunk(c);
        }
Exemple #2
0
        public override void CloneDataFromRead(PngChunk other)
        {
            PngChunkPHYS otherx = (PngChunkPHYS)other;

            this.PixelsxUnitX = otherx.PixelsxUnitX;
            this.PixelsxUnitY = otherx.PixelsxUnitY;
            this.Units        = otherx.Units;
        }