IGxImageFormat.Flags

Syntax

Flags: Integer;

Description

The Flags property returns image codec attributes.

Comments

Use the GxImageCodecFlags enumerable type to check attribute values.

Example

Executing the example requires the C:\Map.bmp image in the file system.

Sub Main;

Var

m_Image: IGxImage;

ImgFormat: IGxImageFormat;

f: integer;

Begin

m_Image := GxImage.FromFile("C:\Map.bmp");

ImgFormat := m_Image.RawFormat;

f := ImgFormat.Flags;

If (f And GxImageCodecFlags.Encoder) > 0 Then

Debug.WriteLine(the codec supports the encoding(saving));

End If;

If (f And GxImageCodecFlags.Decoder) > 0 Then

Debug.WriteLine(the codec supports the decoding (reading));

End If;

If (f And GxImageCodecFlags.SupportBitmap) > 0 Then

Debug.WriteLine(the codec supports the raster images (bitmaps));

End If;

If (f And GxImageCodecFlags.SupportVector) > 0 Then

Debug.WriteLine(the codec supports the vector images (metafiles));

End If;

If (f And GxImageCodecFlags.SeekableEncode) > 0 Then

Debug.WriteLine(the coder needs the searchable input stream);

End If;

If (f And GxImageCodecFlags.BlockingDecode) > 0 Then

Debug.WriteLine(while decoding the decoder blocks);

End If;

If (f And GxImageCodecFlags.Builtin) > 0 Then

Debug.WriteLine(the codec is built into the GDI+);

End If;

End Sub Main;

After executing the example the console window displays information about codec attributes used by the C:\Map.bmp image.

See also:

IGxImageFormat