String 10: spot color
| 518 | |
| 519 | /// String 10: spot color |
| 520 | QString stringForSpotColor(int i, const MapColor& color) |
| 521 | { |
| 522 | const auto& cmyk = color.getCmyk(); |
| 523 | QString string_10; |
| 524 | QTextStream out(&string_10, QIODevice::Append); |
| 525 | out << color.getSpotColorName() |
| 526 | << "\tn" << i |
| 527 | << "\tv1" |
| 528 | << fixed << qSetRealNumberPrecision(1) |
| 529 | << "\tc" << qRound(cmyk.c * 200)/2.0 |
| 530 | << "\tm" << qRound(cmyk.m * 200)/2.0 |
| 531 | << "\ty" << qRound(cmyk.y * 200)/2.0 |
| 532 | << "\tk" << qRound(cmyk.k * 200)/2.0 |
| 533 | << "\tf" << color.getScreenFrequency() * 10 |
| 534 | << "\ta" << color.getScreenAngle(); |
| 535 | return string_10; |
| 536 | } |
| 537 | |
| 538 | |
| 539 |
no test coverage detected