Module Expr Str ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str BinOpAdd Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Num Num Num Num Num Num BinOpLShift Num Num BinOpLShift Num Num AttributeLoad NameLoad attr Num Num Num Num Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad Str body Raise Str Str orelse If CompareEq NameLoad Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr Str BinOpAdd Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str BinOpBitOr NameLoad Num orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num orelse If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad BinOpLShift Call NameLoad NameLoad Num orelse If CompareIn NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Return BinOpBitAnd Call AttributeLoad NameLoad attr Str Num orelse If CompareEq NameLoad Str body Return TupleLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str orelse If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Return BinOpRShift Call AttributeLoad NameLoad attr NameLoad Num orelse If CompareIn NameLoad Call AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad orelse Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num NameLoad NameLoad NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad If CompareEq NameLoad NameLoad body Assign SubscriptStore NameLoad Index Num BinOpSub BinOpAdd NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num If CompareEq NameLoad NameLoad body Assign SubscriptStore NameLoad Index Num BinOpSub BinOpAdd NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Str If BoolOpAnd CompareNotEq NameLoad AttributeLoad NameLoad attr CompareNotEq NameLoad AttributeLoad NameLoad attr body Raise Str Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr TupleLoad Num Num NameLoad NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num orelse Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr BinOpDiv BinOpMult NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Str If BoolOpOr BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Num BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Num body Return AttributeLoad NameLoad attr Raise Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpAdd Call NameLoad Num Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Import alias Assign NameStore BinOpAdd SubscriptLoad Call AttributeLoad NameLoad attr Slice Num Call NameLoad Num Assign NameStore AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Str TupleLoad BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Return Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Num Return NameLoad decorator_list
N/A N/A PixMapWrapper - defines the PixMapWrapper class, which wraps an opaque
QuickDraw PixMap data structure in a handy Python class.  Also provides
methods to convert to/from pixel data (from, e.g., the img module) or a
Python Imaging Library Image object.

J. Strout <joe@strout.net>  February 1999 Carbon Qd Carbon QuickDraw N/A struct N/A MacOS N/A img N/A imgformat N/A _pmElemFormat N/A baseAddr rowBytes bounds top left bottom right pmVersion packType packSize hRes vRes pixelType pixelSize cmpCount cmpSize planeBytes pmTable pmReserved l H hhhh h h h h h h l l l h h h h l l l N/A _pmElemOffset N/A baseAddr rowBytes bounds top left bottom right pmVersion packType packSize hRes vRes pixelType pixelSize cmpCount cmpSize planeBytes pmTable pmReserved 0 4 6 6 8 10 12 14 16 18 22 26 30 32 34 36 38 42 46 PixMapWrapper N/A N/A N/A PixMapWrapper -- wraps the QD PixMap object in a Python class,
    with methods to easily get/set various pixmap fields.  Note: Use the
    PixMap() method when passing to QD calls. __init__ N/A N/A self N/A N/A N/A N/A N/A self __dict__ N/A data N/A N/A self _header N/A N/A struct pack lhhhhhhhlllhhhhlll N/A N/A id N/A self data N/A MacOS string_id_to_buffer 0 0 0 0 0 0 0 0 N/A 72 16 N/A 72 16 N/A QuickDraw RGBDirect 16 2 5 0 0 0 N/A N/A N/A self __dict__ N/A _pm N/A N/A Qd RawBitMap N/A self _header N/A _stuff N/A N/A self element bytes N/A N/A N/A offset N/A _pmElemOffset N/A element N/A fmt N/A _pmElemFormat N/A element N/A N/A self _header N/A N/A N/A N/A self _header N/A offset N/A N/A struct pack fmt bytes N/A N/A self _header N/A N/A offset N/A N/A struct calcsize fmt N/A N/A N/A self __dict__ N/A _pm None N/A _unstuff N/A N/A self element N/A N/A N/A offset N/A _pmElemOffset N/A element N/A fmt N/A _pmElemFormat N/A element N/A N/A N/A N/A struct unpack fmt N/A N/A self _header N/A offset N/A offset N/A N/A struct calcsize fmt N/A 0 N/A __setattr__ N/A N/A self attr val N/A N/A N/A N/A attr baseAddr N/A N/A UseErr don't assign to .baseAddr -- assign to .data instead N/A N/A N/A attr data N/A N/A N/A N/A self __dict__ N/A data val N/A N/A N/A self _stuff baseAddr N/A N/A id N/A self data N/A MacOS string_id_to_buffer N/A N/A N/A attr rowBytes N/A N/A N/A N/A self _stuff rowBytes N/A val 32768 N/A N/A N/A attr bounds N/A N/A N/A N/A self _stuff left N/A val N/A 0 N/A N/A N/A self _stuff top N/A val N/A 1 N/A N/A N/A self _stuff right N/A val N/A 2 N/A N/A N/A self _stuff bottom N/A val N/A 3 N/A N/A N/A N/A attr hRes N/A attr vRes N/A N/A N/A N/A self _stuff attr N/A N/A int val 16 N/A N/A N/A attr N/A N/A _pmElemFormat keys N/A N/A N/A N/A self _stuff attr val N/A N/A N/A N/A self __dict__ N/A attr val N/A __getattr__ N/A N/A self attr N/A N/A N/A N/A attr rowBytes N/A N/A N/A N/A N/A self _unstuff rowBytes 32767 N/A N/A N/A attr bounds N/A N/A N/A N/A N/A self _unstuff left N/A N/A self _unstuff top N/A N/A self _unstuff right N/A N/A self _unstuff bottom N/A N/A N/A N/A attr hRes N/A attr vRes N/A N/A N/A N/A N/A self _unstuff attr 16 N/A N/A N/A attr N/A N/A _pmElemFormat keys N/A N/A N/A N/A self _unstuff attr N/A N/A N/A N/A self __dict__ N/A attr N/A PixMap N/A N/A self N/A N/A N/A Return a QuickDraw PixMap corresponding to this data. N/A N/A N/A N/A self __dict__ N/A _pm N/A N/A N/A N/A self __dict__ N/A _pm N/A N/A Qd RawBitMap N/A self _header N/A N/A N/A self __dict__ N/A _pm N/A blit N/A N/A self x1 y1 x2 y2 port N/A 0 0 None None None N/A N/A Draw this pixmap into the given (default current) grafport. N/A src N/A self bounds N/A dest N/A x1 y1 x2 y2 N/A N/A x2 None N/A N/A N/A dest N/A 2 N/A N/A x1 N/A src N/A 2 N/A src N/A 0 N/A N/A y2 None N/A N/A N/A dest N/A 3 N/A N/A y1 N/A src N/A 3 N/A src N/A 1 N/A N/A port N/A N/A port N/A N/A Qd GetPort N/A N/A N/A Qd CopyBits N/A N/A self PixMap N/A N/A port GetPortBitMapForCopyBits src N/A tuple dest N/A QuickDraw srcCopy None N/A fromstring N/A N/A self s width height format N/A N/A imgformat macrgb N/A N/A Stuff this pixmap with raw pixel data from a string.
        Supply width, height, and one of the imgformat specifiers. N/A N/A N/A format N/A imgformat macrgb N/A format N/A imgformat macrgb16 N/A N/A NotImplementedError conversion to macrgb or macrgb16 N/A N/A self data s N/A N/A self bounds N/A 0 0 width height N/A N/A self cmpCount 3 N/A N/A self pixelType N/A QuickDraw RGBDirect N/A N/A format N/A imgformat macrgb N/A N/A N/A self pixelSize 32 N/A N/A self cmpSize 8 N/A N/A N/A self pixelSize 16 N/A N/A self cmpSize 5 N/A N/A self rowBytes N/A N/A width N/A self pixelSize 8 N/A tostring N/A N/A self format N/A N/A imgformat macrgb N/A N/A Return raw data as a string in the specified format. N/A N/A N/A N/A format N/A imgformat macrgb N/A N/A self pixelSize 32 N/A N/A format N/A imgformat macrgb16 N/A N/A self pixelsize 16 N/A N/A N/A self data N/A NotImplementedError data format conversion N/A fromImage N/A N/A self im N/A N/A N/A Initialize this PixMap from a PIL Image object. N/A N/A N/A im mode RGBA N/A N/A im N/A N/A im convert RGBA N/A data N/A N/A chr 0 N/A N/A im tostring N/A N/A N/A self fromstring data N/A N/A im size N/A 0 N/A N/A im size N/A 1 N/A toImage N/A N/A self N/A N/A N/A Return the contents of this PixMap as a PIL Image object. N/A Image N/A data N/A N/A N/A N/A self tostring N/A 1 N/A chr 0 N/A bounds N/A self bounds N/A N/A N/A Image fromstring RGBA N/A N/A N/A bounds N/A 2 N/A bounds N/A 0 N/A N/A bounds N/A 3 N/A bounds N/A 1 data N/A N/A test N/A N/A N/A N/A N/A MacOS N/A EasyDialogs N/A Image N/A path N/A N/A EasyDialogs AskFileForOpen Image File: N/A N/A path N/A N/A N/A pm N/A PixMapWrapper N/A N/A N/A pm fromImage N/A N/A Image open path N/A N/A N/A pm blit 20 20 N/A pm N/A