VirtualBox

Ignore:
Timestamp:
May 13, 2015 2:40:26 PM (10 years ago)
Author:
vboxsync
Message:

Main: saved screenshot API cleanup.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxSnapshotDetailsDlg.cpp

    r52958 r55854  
    7676    QVector <BYTE> thumbData = machine.ReadSavedThumbnailToArray (0, KBitmapFormat_BGR0, width, height);
    7777    mThumbnail = thumbData.size() != 0 ? QPixmap::fromImage (QImage (thumbData.data(), width, height, QImage::Format_RGB32).copy()) : QPixmap();
    78     QVector <BYTE> screenData = machine.ReadSavedScreenshotPNGToArray (0, width, height);
     78    QVector <BYTE> screenData = machine.ReadSavedScreenshotToArray (0, KBitmapFormat_PNG, width, height);
    7979    mScreenshot = screenData.size() != 0 ? QPixmap::fromImage (QImage::fromData (screenData.data(), screenData.size(), "PNG")) : QPixmap();
    8080
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp

    r55845 r55854  
    647647        /* If there is a preview image saved,
    648648         * we will resize the framebuffer to the size of that image: */
    649         ULONG uBuffer = 0, uWidth = 0, uHeight = 0;
    650         machine().QuerySavedScreenshotPNGSize(0, uBuffer, uWidth, uHeight);
    651         if (uBuffer > 0)
     649        ULONG uWidth = 0, uHeight = 0;
     650        QVector<KBitmapFormat> formats = machine().QuerySavedScreenshotInfo(0, uWidth, uHeight);
     651        if (formats.size() > 0)
    652652        {
    653653            /* Init with the screenshot size: */
     
    10301030    /* Acquire the screen-data from the saved-state: */
    10311031    ULONG uWidth = 0, uHeight = 0;
    1032     const QVector<BYTE> screenData = machine().ReadSavedScreenshotPNGToArray(0, uWidth, uHeight);
     1032    const QVector<BYTE> screenData = machine().ReadSavedScreenshotToArray(0, KBitmapFormat_PNG, uWidth, uHeight);
    10331033
    10341034    /* Make sure there is saved-state screen-data: */
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGMachinePreview.cpp

    r55819 r55854  
    207207                    /* Use the screenshot from saved-state if possible: */
    208208                    ULONG uGuestWidth = 0, uGuestHeight = 0;
    209                     QVector<BYTE> screenData = m_machine.ReadSavedScreenshotPNGToArray(0, uGuestWidth, uGuestHeight);
     209                    QVector<BYTE> screenData = m_machine.ReadSavedScreenshotToArray(0, KBitmapFormat_PNG, uGuestWidth, uGuestHeight);
    210210
    211211                    /* Make sure screen-data is OK: */
Note: See TracChangeset for help on using the changeset viewer.

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