Bitmap.hpp File Reference

Interface of the Bitmap class. More...

Go to the source code of this file.

Classes

class  Gosu::Bitmap
 Rectangular area of pixels, each represented by a Color value. More...

Namespaces

namespace  Gosu
 The library's main namespace.

Functions

void Gosu::loadImageFile (Bitmap &bitmap, const std::wstring &filename)
 Loads any supported image into a Bitmap.
void Gosu::loadImageFile (Bitmap &bitmap, Reader input)
 Loads any supported image into a Bitmap.
void Gosu::saveImageFile (const Bitmap &bitmap, const std::wstring &filename)
 Saves a Bitmap to a file.
void Gosu::saveImageFile (const Bitmap &bitmap, Gosu::Writer writer, const std::wstring &formatHint=L"png")
 Saves a Bitmap to an arbitrary resource.
void Gosu::applyColorKey (Bitmap &bitmap, Color key)
 Set the alpha value of all pixels which are equal to the color key to zero.
void Gosu::unapplyColorKey (Bitmap &bitmap, Color background)
 The reverse of applyColorKey.
void Gosu::applyBorderFlags (Bitmap &dest, const Bitmap &source, unsigned srcX, unsigned srcY, unsigned srcWidth, unsigned srcHeight, unsigned borderFlags)
GOSU_DEPRECATED Reader Gosu::loadFromBMP (Bitmap &bmp, Reader reader)
GOSU_DEPRECATED Writer Gosu::saveToBMP (const Bitmap &bmp, Writer writer)
GOSU_DEPRECATED Reader Gosu::loadFromPNG (Bitmap &bmp, Reader reader)
GOSU_DEPRECATED Writer Gosu::saveToPNG (const Bitmap &bmp, Writer writer)

Detailed Description

Interface of the Bitmap class.

Definition in file Bitmap.hpp.