pyface.util.image_helpers module

Helper functions for working with images

This module provides helper functions for converting between numpy arrays and toolkit images, as well as between the various image types in a standardized way.

Helper functions

  • array_to_image

  • bitmap_to_icon

  • bitmap_to_image

  • image_to_array

  • image_to_bitmap

  • resize_image

  • resize_bitmap

Options for resizing images

  • ScaleMode

  • AspectRatio