Export Snapshot - documentation issues

David Bovill david at openpartnership.net
Fri Aug 31 17:22:39 EDT 2007


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



More information about the use-livecode mailing list