Property | Type | Description | |
---|---|---|---|
CountBits | int | ||
CreateSurface | void | ||
DirectDrawSurface | System | ||
DirectDrawSurface | System | ||
DirectDrawSurface | System | ||
DirectDrawSurface | System | ||
GenerateColorKey | DDCOLORKEY |
Method | Description | |
---|---|---|
Blt ( |
|
|
BltColorFill ( |
|
|
BltFast ( int x, int y, IGraphicsSurface surface, |
|
|
DirectDrawSurface ( String imagePath ) : System |
Create a new surface given an image path
|
|
DirectDrawSurface ( int x, int y ) : System |
Creates a new DirectDrawSurface given a width and height.
|
|
GetBackBufferSurface ( ) : IGraphicsSurface |
|
|
GetDC ( ) : |
|
|
IsLost ( ) : int |
|
|
ReleaseDC ( |
|
|
RestoreSurface ( ) : void |
Recreate the surface in the instance that the image memory is lost do to a video mode switch.
|
|
SetForeColor ( int color ) : void |
|
Method | Description | |
---|---|---|
CountBits ( int number ) : int |
Helper function for counting bits used when creating transparency keys.
|
|
CreateSurface ( ) : void |
Helper function used to complete initialization of a surface.
|
|
DirectDrawSurface ( ) : System |
Static constructor used to intialize static surface description fields.
|
|
DirectDrawSurface ( DDSURFACEDESC2 surfaceDescription ) : System |
Create a new surface given a surface description.
|
|
DirectDrawSurface ( DirectDrawSurface7 directDrawSurface ) : System |
Initialize a new surface based on a previously created surface
|
|
DirectDrawSurface ( String imagePath, DDSURFACEDESC2 surfaceDescription ) : System |
Create a new surface from an image and a surface description.
|
|
GenerateColorKey ( byte r, byte g, byte b ) : DDCOLORKEY |
Attempts to generate a transparency key from an r,g,b byte color.
|
public Blt ( |
||
destRect | ||
surface | IGraphicsSurface | |
srcRect | ||
flags | BltFlags | |
return | void |
public BltColorFill ( |
||
rect | ||
fillvalue | int | |
return | void |
public BltFast ( int x, int y, IGraphicsSurface surface, |
||
x | int | |
y | int | |
surface | IGraphicsSurface | |
rectangle | ||
flags | BltFastFlags | |
return | void |
public DirectDrawSurface ( String imagePath ) : System | ||
imagePath | String | Path to an image file. |
return | System |
public DirectDrawSurface ( int x, int y ) : System | ||
x | int | The width of the surface. |
y | int | The height of the surface. |
return | System |
public GetBackBufferSurface ( ) : IGraphicsSurface | ||
return | IGraphicsSurface |
public ReleaseDC ( |
||
handle | ||
return | void |