SPH
Classes | Functions
Bitmap.h File Reference

Wrapper of wxBitmap, will be possibly replaced by custom implementation. More...

#include "gui/objects/Color.h"
#include "gui/objects/Point.h"
#include "objects/containers/Array.h"

Go to the source code of this file.

Classes

class  Bitmap< Type >
 

Functions

void toWxBitmap (const Bitmap< Rgba > &bitmap, wxBitmap &wx)
 
Bitmap< RgbatoBitmap (wxBitmap &wx)
 
void saveToFile (const wxBitmap &wx, const Path &path)
 
void saveToFile (const Bitmap< Rgba > &bitmap, const Path &path)
 
Bitmap< RgbaloadBitmapFromFile (const Path &path)
 

Detailed Description

Wrapper of wxBitmap, will be possibly replaced by custom implementation.

Author
Pavel Sevecek (sevecek at sirrah.troja.mff.cuni.cz)
Date
2016-2021

Definition in file Bitmap.h.

Function Documentation

◆ loadBitmapFromFile()

Bitmap<Rgba> loadBitmapFromFile ( const Path path)

Definition at line 70 of file Bitmap.cpp.

◆ saveToFile() [1/2]

void saveToFile ( const Bitmap< Rgba > &  bitmap,
const Path path 
)

Definition at line 64 of file Bitmap.cpp.

◆ saveToFile() [2/2]

void saveToFile ( const wxBitmap &  wx,
const Path path 
)

Definition at line 59 of file Bitmap.cpp.

◆ toBitmap()

Bitmap<Rgba> toBitmap ( wxBitmap &  wx)

Definition at line 39 of file Bitmap.cpp.

◆ toWxBitmap()

void toWxBitmap ( const Bitmap< Rgba > &  bitmap,
wxBitmap &  wx 
)

Definition at line 12 of file Bitmap.cpp.