Wt: Wt::WPainter::Image Class Reference

Wt 3.3.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions
Wt::WPainter::Image Class Reference

An image that can be rendered on a WPainter. More...

List of all members.

## Public Member Functions
| Image (const std::string &url, int width, int height)
| Creates an image.
| Image (const std::string &url, const std::string &file)
| Creates an image.
std::string | uri () const
| Returns the url.
int | width () const
| Returns the image width.
int | height () const
| Returns the image height.

## Detailed Description

An image that can be rendered on a WPainter.

The image is specified in terms of a URL, and the width and height.

See also:
  drawImage()

## Constructor & Destructor Documentation

Wt::WPainter::Image::Image | ( | const std::string & | url,
|  | int | width,
|  | int | height
| ) |  |

Creates an image.

Create an image which is located at the uri, and which has dimensions width x height.

Wt::WPainter::Image::Image | ( | const std::string & | url,
|  | const std::string & | file
| ) |  |

Creates an image.

Create an image which is located at uri which is available on the local filesystem as file. The image dimensions are retrieved from the file.

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator