| 201 | } |
| 202 | |
| 203 | RGBAImage::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 | |
| 212 | RGBAImage::RGBAImage(const XPM &xpm) { |
| 213 | height = xpm.GetHeight(); |