4AspNet IPInfo v1.0

CountryInfo.GetFlagImageStream Method ()

Returns country flag image data.

public Stream GetFlagImageStream();

Return Value

The Stream object.

Remarks

The returned Stream object contains sequence of bytes of the country flag thumbnail image. The format of an image is: PNG, 18x16 pixels. After obtaining this stream it is possible to save it's data to a file, write data to a response stream of a Web Forms, assign as an image for a PictureBox Windows Forms control or use data in some other way.

If flag information for a country is absent then the stream with empty (transparent) image is returned.

Example

For an example see CountryInfo.GetFlagImageStream Overload List.

See Also

CountryInfo Class | ForAspNet.IPInfo Namespace | CountryInfo.GetFlagImageStream Overload List