BitMiracle.LibTiff.Classic.Tiff.writeRational C# (CSharp) Method

writeRational() private method

private writeRational ( TiffType type, TiffTag tag, TiffDirEntry &dir, float v ) : bool
type TiffType
tag TiffTag
dir TiffDirEntry
v float
return bool
        private bool writeRational(TiffType type, TiffTag tag, ref TiffDirEntry dir, float v)
        {
            dir.tdir_tag = tag;
            dir.tdir_type = type;
            dir.tdir_count = 1;

            float[] a = new float[1];
            a[0] = v;
            if (!writeRationalArray(ref dir, a))
                return false;

            return true;
        }
Tiff