Open Picture Lib 1.1 : Open a QuickTime-compatible image and return it as a GWorldPtr.

 

The following example shows how to open a picture and draw it on a window.

 

pascal OSErr DrawPictureToWindow( FSSpec *spec, WindowRef window )

{

    Rect theRect;

    GWorldPtr world;

    SetPort( GetWindowPort( window ) );

    world = FSpOpenPicture( spec, &theRect ); //From Open Picture Lib

    CopyBits( ( BitMapPtr ) *GetGWorldPixMap( world ), ( BitMapPtr ) *GetPortPixMap

    ( GetWindowPort ( window ) ), &theRect, &theRect, srcCopy, nil );

    return noErr;

}

 

CFPlugin UUID 1.2 : Generate UUID from CFUUIDCreate() for CFPlugin, e.g. contextual menus.

 

Updated: April 24, 2004