Module Expr Str TryExcept body Import alias Import alias handlers ExceptHandler type NameLoad body TryExcept body ImportFrom alias ImportFrom alias handlers ExceptHandler type NameLoad body Raise Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Num Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad BinOpSub Num BinOpMult Num NameLoad Assign NameStore Call NameLoad BinOpMult Num NameLoad Assign NameStore BinOpDiv BinOpSub Num NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str TupleLoad Num Num For NameStore Call NameLoad Num body If CompareLt NameLoad NameLoad body Assign NameStore Call NameLoad BinOpAdd BinOpMult NameLoad NameLoad NameLoad orelse Assign NameStore Num Expr Call AttributeLoad NameLoad attr TupleLoad Num NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad BinOpMult SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Num SubscriptLoad AttributeLoad NameLoad attr Index Num Return NameLoad decorator_list
N/A N/A  Function for generating web 2.0 style image reflection effects.

Copyright (c) 2007, Justin C. Driscoll
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

    1. Redistributions of source code must retain the above copyright notice,
       this list of conditions and the following disclaimer.

    2. Redistributions in binary form must reproduce the above copyright
       notice, this list of conditions and the following disclaimer in the
       documentation and/or other materials provided with the distribution.

    3. Neither the name of reflection.py nor the names of its contributors may be used
       to endorse or promote products derived from this software without
       specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

 N/A N/A N/A Image N/A ImageColor N/A N/A N/A ImportError N/A N/A N/A PIL Image PIL ImageColor N/A N/A N/A ImportError N/A N/A N/A ImportError The Python Imaging Library was not found. add_reflection N/A N/A im bgcolor amount opacity N/A #00000 0.4 0.6 N/A N/A  Returns the supplied PIL Image (im) with a reflection effect

    bgcolor  The background color of the reflection gradient
    amount   The height of the reflection as a percentage of the orignal image
    opacity  The initial opacity of the reflection gradient

    Originally written for the Photologue image management system for Django
    and Based on the original concept by Bernd Schlapsi

     N/A background_color N/A N/A ImageColor getrgb bgcolor N/A reflection N/A N/A N/A N/A im copy transpose N/A Image FLIP_TOP_BOTTOM N/A background N/A N/A Image new RGB N/A im size background_color N/A start N/A int N/A 255 N/A 255 opacity N/A steps N/A int N/A 255 amount N/A increment N/A N/A 255 start N/A float steps N/A mask N/A N/A Image new L N/A 1 255 N/A y N/A range 255 N/A N/A N/A y steps N/A N/A val N/A int N/A N/A y increment start N/A N/A val 255 N/A N/A N/A mask putpixel N/A 0 y val N/A alpha_mask N/A N/A mask resize N/A im size N/A reflection N/A N/A Image composite background reflection alpha_mask N/A reflection_height N/A int N/A N/A N/A im size N/A 1 amount N/A reflection N/A N/A reflection crop N/A 0 0 N/A N/A im size N/A 0 reflection_height N/A composite N/A N/A Image new RGB N/A N/A N/A im size N/A 0 N/A N/A N/A im size N/A 1 reflection_height background_color N/A N/A N/A composite paste im N/A 0 0 N/A N/A N/A composite paste reflection N/A 0 N/A N/A im size N/A 1 N/A composite N/A