VirtualBox

Changeset 20814 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jun 23, 2009 10:40:53 AM (16 years ago)
Author:
vboxsync
Message:

Main: prototyped screenshot usable for scripting languages

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/DisplayImpl.cpp

    r20224 r20814  
    15861586    return rc;
    15871587}
     1588
     1589STDMETHODIMP Display::TakeScreenShotSlow (ULONG width, ULONG height,
     1590                                          ComSafeArrayOut (BYTE, aScreenData))
     1591{
     1592     HRESULT rc = S_OK;
     1593
     1594     rc = setError (E_NOTIMPL, tr ("This feature is not implemented"));
     1595     
     1596     return rc;
     1597}
     1598
    15881599
    15891600STDMETHODIMP Display::DrawToScreen (BYTE *address, ULONG x, ULONG y,
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r20630 r20814  
    1088910889    </method>
    1089010890
     10891    <method name="takeScreenShotSlow">
     10892      <desc>
     10893        Takes a screen shot of the requested size and returns it as
     10894        an array of bytes. This API is slow, but could be the only option for
     10895        scribtable languages not allowed to manipulate with addresses
     10896        directly.
     10897
     10898        <result name="E_NOTIMPL">
     10899          Feature not implemented.
     10900        </result>
     10901        <result name="VBOX_E_IPRT_ERROR">
     10902          Could not take a screenshot.
     10903        </result>
     10904      </desc>
     10905      <param name="width" type="unsigned long" dir="in"/>
     10906      <param name="height" type="unsigned long" dir="in"/>
     10907      <param name="screenData" type="octet" dir="out" safearray="yes">
     10908        <desc>
     10909          Array with resulting screen data.
     10910        </desc>
     10911      </param>
     10912    </method>
     10913
    1089110914    <method name="drawToScreen">
    1089210915      <desc>
  • trunk/src/VBox/Main/include/DisplayImpl.h

    r20021 r20814  
    240240    STDMETHOD(SetVideoModeHint)(ULONG width, ULONG height, ULONG bitsPerPixel, ULONG display);
    241241    STDMETHOD(TakeScreenShot)(BYTE *address, ULONG width, ULONG height);
     242    STDMETHOD(TakeScreenShotSlow)(ULONG width, ULONG height, ComSafeArrayOut(BYTE, aScreenData));
    242243    STDMETHOD(DrawToScreen)(BYTE *address, ULONG x, ULONG y, ULONG width, ULONG height);
    243244    STDMETHOD(InvalidateAndUpdate)();
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