BitMiracle.LibTiff.Classic.Internal.CodecWithPredictorTagMethods.GetField C# (CSharp) Method

GetField() public method

public GetField ( Tiff tif, TiffTag tag ) : FieldValue[]
tif Tiff
tag TiffTag
return FieldValue[]
        public override FieldValue[] GetField(Tiff tif, TiffTag tag)
        {
            CodecWithPredictor sp = tif.m_currentCodec as CodecWithPredictor;
            Debug.Assert(sp != null);

            switch (tag)
            {
                case TiffTag.PREDICTOR:
                    FieldValue[] result = new FieldValue[1];
                    result[0].Set(sp.GetPredictorValue());
                    return result;
            }

            TiffTagMethods childMethods = sp.GetChildTagMethods();
            if (childMethods != null)
                return childMethods.GetField(tif, tag);

            return base.GetField(tif, tag);
        }
CodecWithPredictorTagMethods