The Bitmap class encapsulates a bitmap.
Returns the height of the bitmap.
Returns the height of the bitmap.
Returns the width of the bitmap.
Returns the width of the bitmap.
Returns true if the Bitmap object represents a valid bitmap, and false otherwise.
Returns true if the Bitmap object represents a valid bitmap. Returns false if the Bitmap object does not represent a valid bitmap.
Returns true if the bitmap is successfully loaded from the file and false otherwise.
Loads a bitmap from a file, where the file is specified filename and the optional file format is given by type. The type is one of Bitmap.FormatBMP, Bitmap.FormatGIF, Bitmap.FormatXPM, Bitmap.FormatPNG, or Bitmap.FormatJPG. Returns true if the bitmap is successfully loaded from the file and false otherwise.
Returns true if the bitmap is successfully saved to the file and false otherwise.
Saves a bitmap to a file, where the file is specified filename and the optional file format is given by type. The type is one of Bitmap.FormatBMP, Bitmap.FormatGIF, Bitmap.FormatXPM, Bitmap.FormatPNG, or Bitmap.FormatJPG. Returns true if the bitmap is successfully saved to the file and false otherwise.
Sets the height of the bitmap.
Sets the width of the bitmap.