VirtualBox

Ignore:
Timestamp:
Jul 25, 2014 8:00:49 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95260
Message:

Main,Frontends: TakeScreenShot API cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxShell/vboxshell.py

    r50711 r52200  
    556556
    557557    print "Saving screenshot (%d x %d) screen %d in %s..." % (w, h, screen, f)
    558     data = display.takeScreenShotToArray(screen, w, h)
     558    data = display.takeScreenShotToArray(screen, w, h, ctx['const'].BitmapFormat_RGBA)
    559559    size = (w, h)
    560560    mode = "RGBA"
     
    583583
    584584    print "Saving screenshot (%d x %d) screen %d in %s..." % (w, h, screen, f)
    585     data = display.takeScreenShotPNGToArray(screen, w, h)
     585    data = display.takeScreenShotToArray(screen, w, h, ctx['const'].BitmapFormat_PNG)
    586586    pngfile = open(f, 'wb')
    587587    pngfile.write(data)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette