The ImageRenderer class fetches, decodes, and displays a single inlined image. More...
Publicly inherits FormObjectRenderer.
ImageRenderer | ( QString src, int width, int height, bool ismap, bool isSubmit, QString url, Canvas* canvas, int clipWidth=???, QObject* parent=???, const char* name=??? ); | |
bool | isMap | ( ); |
bool | isSubmit | ( ); |
virtual bool | redraw | ( ); |
void | repaint | ( QPainter& p, const Rect& r ); |
void | reset | ( ); |
void | setX | ( int x ); |
void | setY | ( int y ); |
QString | value | ( ); |
virtual | ~ImageRenderer | ( ); |
void | endOfData | ( ); |
void | startOfData | ( Request* req, QString mediaType, QString mediaSubtype, int size ); |
ImageDecoder* | _decoder; |
bool | _isSubmit; |
bool | _ismap; |
QString | _src; |
QString | _url; |
int | _x; |
int | _y; |
The ImageRenderer class fetches, decodes, and displays a single inlined image.
The ImageRenderer class creates a request for the image data, and creates an appropriate ImageDecoder to process the data. The image decoder is selected based on the Internet media type of the image data stream.Create a new ImageReneder. The src specifies the url for the image data. The width and height parameters give the width and height that the image should be. A request is made for the image data.
Set our minimum and maximum width to be the width of our QWidget.
Free the pixmap containing the image.
Create an appropriate ImageDecoder based on the Internet media type of data stream.