예제 #1
0
func fiExposureProgram(f tiff.Field) string {
	prog := f.Type().Valuer()(f.Value().Bytes(), f.Value().Order()).Uint()
	if prog >= uint64(len(exposureProgramVals)) {
		return ""
	}
	return exposureProgramVals[prog]
}
예제 #2
0
// fiRatAsFloat displays a rational as a float with 2 decimal points.
func fiRatAsFloat(f tiff.Field) string {
	return f.Type().Valuer()(f.Value().Bytes(), f.Value().Order()).Interface().(*big.Rat).FloatString(2)
}