Beatmup
tools.h File Reference
#include "abstract_bitmap.h"
#include "internal_bitmap.h"
#include "../geometry.h"
#include "pixel_arithmetic.h"

Go to the source code of this file.

Namespaces

 Beatmup
 
 Beatmup::BitmapTools
 Set of handy operations with images.
 

Functions

InternalBitmapBeatmup::BitmapTools::makeCopy (AbstractBitmap &bitmap)
 Makes a copy of a bitmap. More...
 
InternalBitmapBeatmup::BitmapTools::makeCopy (AbstractBitmap &bitmap, PixelFormat pixelFormat)
 Makes a copy of a bitmap converting the data to a given pixel format. More...
 
InternalBitmapBeatmup::BitmapTools::makeCopy (AbstractBitmap &bitmap, Context &context, PixelFormat pixelFormat)
 Makes a copy of a bitmap for a given Context converting the data to a given pixel format. More...
 
InternalBitmapBeatmup::BitmapTools::chessboard (Context &context, int width, int height, int cellSize, PixelFormat pixelFormat=BinaryMask)
 Renders a chessboard image. More...
 
void Beatmup::BitmapTools::noise (AbstractBitmap &bitmap, IntRectangle area)
 Replaces a rectangular area in a bitmap by random noise. More...
 
void Beatmup::BitmapTools::noise (AbstractBitmap &bitmap)
 Fills a given bitmap with random noise. More...
 
void Beatmup::BitmapTools::makeOpaque (AbstractBitmap &bitmap, IntRectangle area)
 Makes a bitmap area opaque. More...
 
void Beatmup::BitmapTools::invert (AbstractBitmap &input, AbstractBitmap &output)
 Inverses colors of an image in a pixelwise fashion. More...
 
IntPoint Beatmup::BitmapTools::scanlineSearch (AbstractBitmap &source, pixint4 val, const IntPoint &startFrom)
 Goes through a bitmap in scanline order (left to right, top to bottom) until a pixel of a given color is met. More...
 
IntPoint Beatmup::BitmapTools::scanlineSearch (AbstractBitmap &source, pixfloat4 val, const IntPoint &startFrom)