Public Types
- enum Flags { None = 0, DrawFrame = 1, BlendIcon = 2 }
Public Methods
enum Flags { None = 0, DrawFrame = 1, BlendIcon = 2 }
| Flags |
~ThumbCreator ()
| ~ThumbCreator |
[virtual]
bool create (const QString &path, int width, int height, QImage &img)
| create |
[pure virtual]
Creates a thumbnail
Note that the width and height parameters should not be used
for scaling. Only plugins that create an image "from scratch",
like the TextCreator should directly use the specified size.
If the resulting preview is larger than width x height, it will be
scaled down.
Parameters:
path | the (always local) file path to create a preview for
|
width | maximum width for the preview
|
height | maximum height for the preview
|
img | this image will contain the preview on success
|
Returns: true if preview generation succeeded
[const virtual]
The flags of this plugin:
- None nothing special
- DrawFrame a frame should be painted around the preview
- BlendIcon the mimetype icon should be blended over the preview
Returns: flags for this plugin
Generated by: dfaure on faure on Tue Apr 16 08:49:48 2002, using kdoc 2.0a53. |