# LoadImageFile Method

## Applies to

THtmlViewer, TFrameViewer components

## Deprecated

Use method LoadFromFile instead.

## Declaration

procedure LoadImageFile(const Filename: ThtString);

## Description

The LoadImageFile method loads a Bitmap, GIF, JPEG, or PNG image for viewing. Filename is the name of the image file to be loaded.

## See also

- LoadFromDocument Method
- LoadFromFile Method
- LoadFromStream Method
- LoadFromString Method