KiCad PCB EDA Suite
Loading...
Searching...
No Matches
bitmap_texture.cpp File Reference
#include <gal/bitmap_texture.h>
#include <math/util.h>
#include <algorithm>
#include <wx/image.h>

Go to the source code of this file.

Namespaces

namespace  KIGFX
 The Cairo implementation of the graphics abstraction layer.
 

Functions

wxImage KIGFX::FitImageToTexture (const wxImage &aImage, int aMaxTextureSize)
 Fit an image into the largest texture a GPU can hold.
 
std::vector< uint8_t > KIGFX::RgbToRgba (const uint8_t *aRgb, const uint8_t *aAlpha, size_t aPixelCount)
 Expand packed RGB to tightly packed RGBA.
 
std::vector< uint8_t > KIGFX::ImageToRgba (const wxImage &aImage)
 The pixels of aImage as tightly packed RGBA, transparent where it has alpha or a mask.