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, Bitmap.FormatJPG, or Bitmap.FormatSVG. Files ending in .svg are detected automatically when no type is given. An SVG load makes the bitmap vector-backed: it renders crisply at any display scale, and the optional size gives the default render size in DIPs (device-independent pixels), defaulting to 16. size is ignored for the raster formats. 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.