コード例 #1
0
        internal bool MustGoBeforeIDAT()
        {
            ChunkOrderingConstraint oc = GetOrderingConstraint();

            return(oc == ChunkOrderingConstraint.BEFORE_IDAT ||
                   oc == ChunkOrderingConstraint.BEFORE_PLTE_AND_IDAT ||
                   oc == ChunkOrderingConstraint.AFTER_PLTE_BEFORE_IDAT);
        }
コード例 #2
0
ファイル: PngChunk.cs プロジェクト: 1144822034/sc2.2mobile
        internal bool mustGoBeforeIDAT()
        {
            ChunkOrderingConstraint orderingConstraint = GetOrderingConstraint();

            if (orderingConstraint != ChunkOrderingConstraint.BEFORE_IDAT && orderingConstraint != ChunkOrderingConstraint.BEFORE_PLTE_AND_IDAT)
            {
                return(orderingConstraint == ChunkOrderingConstraint.AFTER_PLTE_BEFORE_IDAT);
            }
            return(true);
        }