| Package com.ms.com.directX |
Previous |
Microsoft Packages |
Index |
Next |
Applications use the dBitmap class to create and manage bitmaps.
public class dBitmap implements IdBitmap
{
public void filename(String val);
public void initWidth(int val);
public int width();
public void initHeight(int val);
public int height();
public int loaded();
public int InternalGetBitmap();
}
The methods are as follows:
| filename | initWidth | width | initHeight | height | loaded |
public void filename(String val);Sets the name of the file containing the bitmap data.
Return Value:
No return value.
Parameter Description val Name of the bitmap file.
public void initWidth(int val);Initializes the width of the bitmap.
Return Value:
No return value.
Parameter Description val Initial width of the bitmap, in pixels.
public int width();Retrieves the actual width of the bitmap.
Return Value:
Returns the width in pixels.
public void initHeight(int val);Sets the initial height of the bitmap.
Return Value:
No return value.
Parameter Description val Initial height of the bitmap, in pixels.
public int height();Retrieves the actual height of the bitmap.
Return Value:
Returns the height of the bitmap, in pixels.
public int loaded();Indicates whether the bitmap data has been loaded.
Return Value:
Returns TRUE if loaded, FALSE otherwise.
| © 1997 Microsoft Corporation. All rights reserved. Terms of Use. |