Module wallpaper
[show private | hide private]
[frames | no frames]

Module wallpaper

Deals with wallpaper and related views
Classes
BPFSHandler  
DisplayItem  
ImageCropSelect  
ImagePreview  
ImagePreviewDialog  
WallpaperPreview  
WallpaperView  

Function Summary
  BPFSImageFile(fshandler, location, name, img, width, height, valign, bgcolor)
Handles image files
  ScaleImageIntoBitmap(img, usewidth, useheight, bgcolor, valign)
Scales the image and returns a bitmap

Function Details

BPFSImageFile(fshandler, location, name=None, img=None, width=-1, height=-1, valign='center', bgcolor=None)

Handles image files

If we have to do any conversion on the file then we return PNG data. This used to be a class derived from wx.FSFile, but due to various wxPython bugs it instead returns the parameters to make a wx.FSFile since a new one has to be made every time.

ScaleImageIntoBitmap(img, usewidth, useheight, bgcolor=None, valign='center')

Scales the image and returns a bitmap
Parameters:
usewidth - the width of the new image
useheight - the height of the new image
bgcolor - the background colour as a string ("ff0000" is red etc). If this is none then the background is made transparent

Generated by Epydoc 2.1 on Fri Aug 15 18:58:24 2008 http://epydoc.sf.net