FlagImageFormat

The image format of flag artwork.

Not every shape comes in every format. Waving flags are PNG or WebP only — they need transparency around the fold — so Jpeg and Svg fall back to Png for them. The original shapes come in all four; Svg is a single scalable file, laid out at the shape's width or height like the rest.

CountryFlagStyle.Circle and CountryFlagStyle.Rounded crop the flag to one size, and a crop of a waving flag would show its fold and transparent corners — so those styles always draw the original artwork, whichever shape is set.

Entries

Link copied to clipboard

Lossless with transparency. The safe default.

Link copied to clipboard

Smaller than PNG at the same quality, with transparency.

Link copied to clipboard

Smallest, without transparency. Original shapes only.

Link copied to clipboard

Vector, sharp at any size. Original shapes only.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.