MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / RGBAImage

Method RGBAImage

scintilla/src/XPM.cxx:203–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203RGBAImage::RGBAImage(int width_, int height_, float scale_, const unsigned char *pixels_) :
204 height(height_), width(width_), scale(scale_) {
205 if (pixels_) {
206 pixelBytes.assign(pixels_, pixels_ + CountBytes());
207 } else {
208 pixelBytes.resize(CountBytes());
209 }
210}
211
212RGBAImage::RGBAImage(const XPM &xpm) {
213 height = xpm.GetHeight();

Callers

nothing calls this directly

Calls 3

PixelAtMethod · 0.80
GetHeightMethod · 0.45
GetWidthMethod · 0.45

Tested by

no test coverage detected