AGW Logo

agw_title NativeImageHandler

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

hierarchy Inheritance Diagram

Inheritance diagram for: NativeImageHandler

Inheritance diagram of NativeImageHandler


method_summary Methods Summary

HighlightImageAdjust overall image brightness to highlight.
LoadThumbnailLoad the file and rescale it.

API Class API

class NativeImageHandler(object)[source]

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



HighlightImage(img, factor)[source]

Adjust overall image brightness to highlight.

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


LoadThumbnail(filename, thumbnailsize)[source]

Load the file and rescale it.

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

Table Of Contents

Previous topic

thumbnailctrl

Next topic

PILImageHandler