getprop object_SnapShot [imageType]
    put the long id of the target into targetObject
    put the stack_Object of targetObject into stackObject

    put the windowid of stackObject into wID
    put the rect of targetObject into localRect

    switch imageType
        case "Transparent"
            toplevel stackObject
            put the global_Rect of targetObject into globalRect
            export snapshot from rect globalRect of targetObject to
someImage as PNG
            break
        case "GIF"
            export snapshot from rect localRect of window wID to
someImage as GIF
            break
        case "JPG"
            export snapshot from rect localRect of window wID to
someImage as JPEG
            break
        case "JPEG"
            export snapshot from rect localRect of window wID to
someImage as JPEG
            break
        default
            export snapshot from rect localRect of window wID to
someImage as PNG
    end switch
    return someImage
end object_SnapShot
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to