The DirectDrawSurface Class contains the following methods:
addAttachedSurface attaches a surface to another surface.
addOverlayDirtyRect builds the list of the rectangles that need to be updated the next time the updateOverlayDisplay method is called.
blt performs a bit block transfer.
bltColorFill fills the given rectangle on the surface with the given fill value.
bltFast performs a source copy blit or transparent blit by using a source color key or destination color key.
bltFx is capable of synchronous or asynchronous blits.
copyBitmap copies a bitmap.
create3DDevice creates a device from the surface if you want a rendering surface.
deleteAttachedSurface detaches two attached surfaces.
enumAttachedSurfaces enumerates all the surfaces attached to a given surface.
enumOverlayZOrders enumerates the overlay surfaces on the specified destination.
flip makes the surface memory associated with the DDSCAPS_BACKBUFFER surface become associated with the front-buffer surface.
getAttachedSurface obtains the attached surface that has the specified capabilities.
getBltStatus obtains the blitter status.
getCaps retrieves the capabilities of the surface.
getClipper retrieves the DirectDrawClipper object associated with this surface.
getColorKey retrieves the color key value for the DirectDrawSurface object.
getDC creates a Graphical Device Interface-compatible handle of a device context for the surface.
getDDInterface retrieves an interface to the DirectDraw object that was used to create the surface.
getFlipStatus indicates whether the surface has finished its flipping process.
getOverlayPositionX given a visible, active overlay surface (DDSCAPS_OVERLAY flag set), this method returns the x-display-coordinate of the surface.
getOverlayPositionY given a visible, active overlay surface (DDSCAPS_OVERLAY flag set), this method returns the y-display-coordinate of the surface.
getPalette retrieves the DirectDrawPalette structure associated with this surface.
getPixelFormat retrieves the color and pixel format of the surface.
getSurfaceDesc retrieves a description of the surface in its current condition.
isLost determines if the surface memory associated with a DirectDrawSurface object has been freed.
lock obtains the contents of the surface memory.
releaseDC releases the handle of a device context previously obtained by using the getDC method.
restore restores a surface that has been lost.
setClipper attaches a DirectDrawClipper object to a DirectDrawSurface object.
setColorKey Sets the color key value for the DirectDrawSurface object if the hardware supports color keys on a per surface basis.
setOverlayPosition changes the display coordinates of an overlay surface.
setPalette attaches the specified DirectDrawPalette object to a surface.
unlock notifies DirectDraw that the direct surface manipulations are complete and copies the contents of the memory buffer into the surface.
updateOverlay repositions or modifies the visual attributes of an overlay surface.
updateOverlayDisplay repaints the rectangles in the dirty rectangle list of all active overlays.
updateOverlayZOrder sets the z-order of an overlay.