Class DirectDrawBitmap
public class DirectDrawBitmap implements IDirectDrawBitmap
{
// Methods
public void filename(String val);
public int height();
public void initHeight(int val);
public void initWidth(int val);
public int loaded();
public int width();
}
Applications use the DirectDrawBitmap class to create and manage bitmaps.
public void filename(String val);
Sets the name of the file containing the bitmap data.
Return Value:
No return value.
Parameter | Description |
val
| The name of the bitmap file.
|
public int height();
Retrieves the actual height of the bitmap.
Return Value:
Returns the height, in pixels.
public void initHeight(int val);
Sets the initial height of the bitmap.
Return Value:
No return value.
Parameter | Description |
val
| The initial height, in pixels.
|
public void initWidth(int val);
Initializes the width of the bitmap.
Return Value:
No return value.
Parameter | Description |
val
| The initial width, in pixels.
|
public int loaded();
Indicates whether the bitmap data has been loaded.
Return Value:
Returns 1 if loaded, 0 otherwise.
public int width();
Retrieves the actual width of the bitmap.
Return Value:
Returns the width in pixels.