예제 #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);
        }
예제 #2
0
        public void SetDpi(double dpix, double dpiy)
        {
            PngChunkPHYS pngChunkPHYS = new PngChunkPHYS(chunkList.imageInfo);

            pngChunkPHYS.SetAsDpi2(dpix, dpiy);
            QueueChunk(pngChunkPHYS);
        }
예제 #3
0
        public override void CloneDataFromRead(PngChunk other)
        {
            PngChunkPHYS otherx = (PngChunkPHYS)other;

            this.PixelsxUnitX = otherx.PixelsxUnitX;
            this.PixelsxUnitY = otherx.PixelsxUnitY;
            this.Units        = otherx.Units;
        }
예제 #4
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);
 }