CGVIS Utils
Loading...
Searching...
No Matches
bmp.cpp File Reference
#include <fstream>
#include <iostream>
#include <exception>
#include <string>
#include <sstream>
#include <vector>
#include <algorithm>
#include <string_view>
#include "bmp.h"
Include dependency graph for bmp.cpp:

Namespaces

namespace  BMP

Functions

bool BMP::save (const std::string &filename, const Image &source, bool ignoreSize=false)
 Save an Image to a BMP file.
bool BMP::save (const std::string &filename, uint32_t w, uint32_t h, const std::vector< float > &data, uint8_t iComponentCount=3, bool ignoreSize=false)
 Save raw floating-point component data to a BMP file.
bool BMP::save (const std::string &filename, uint32_t w, uint32_t h, const std::vector< uint8_t > &data, uint8_t iComponentCount=3, bool ignoreSize=false)
 Save raw 8-bit component data to a BMP file.
Image BMP::load (const std::string &filename)
 Load a BMP file into an Image.
void BMP::blit (const Image &source, const Vec2ui &sourceStart, const Vec2ui &sourceEnd, Image &target, const Vec2ui &targetStart, bool skipChecks=false)
 Copy a rectangular region from source to target (blit).