* Get supported image file extensions for BitmapWidget. * The result is a comma separated list of extensions, each starting with a dot. * * @return Comma separated list of supported image file extensions. */
| 498 | * @return Comma separated list of supported image file extensions. |
| 499 | */ |
| 500 | static String getImageFileExtensions() |
| 501 | { |
| 502 | String result; |
| 503 | uint8_t idx; |
| 504 | |
| 505 | for (idx = 0; idx < BitmapWidget::IMAGE_FILE_EXTENSIONS_COUNT; ++idx) |
| 506 | { |
| 507 | if (0U < idx) |
| 508 | { |
| 509 | result += ","; |
| 510 | } |
| 511 | |
| 512 | result += "."; |
| 513 | result += BitmapWidget::IMAGE_FILE_EXTENSIONS[idx]; |
| 514 | } |
| 515 | |
| 516 | return result; |
| 517 | } |
| 518 | |
| 519 | }; /* namespace tmpl */ |