Table Of Contents

Previous topic

thumbnailctrl

Next topic

PILImageHandler

This Page

phoenix_title NativeImageHandler

This image handler loads and manipulates the thumbnails with the help of wxPython’s own image related functions.


class_hierarchy Inheritance Diagram

Inheritance diagram for class NativeImageHandler

Inheritance diagram of NativeImageHandler


method_summary Methods Summary

HighlightImage Adjust overall image brightness to highlight.
LoadThumbnail Load the file and rescale it.

api Class API



class NativeImageHandler(object)

This image handler loads and manipulates the thumbnails with the help of wxPython’s own image related functions.


Methods



HighlightImage(self, img, factor)

Adjust overall image brightness to highlight.

Parameters:
  • img – an instance of Image;
  • factor – a floating point number representing the highlight factor.


LoadThumbnail(self, filename, thumbnailsize)

Load the file and rescale it.

Parameters:
  • filename – a file containing an image;
  • thumbnailsize – the desired size of the thumbnail.