| 92 | } |
| 93 | |
| 94 | void Image::Resize(const Extent3D& extent) |
| 95 | { |
| 96 | /* Allocate new image buffer or release it if the extent is zero */ |
| 97 | extent_ = extent; |
| 98 | if (extent.width > 0 && extent.height > 0 && extent.depth > 0) |
| 99 | data_ = GenerateEmptyByteBuffer(GetDataSize(), false); |
| 100 | else |
| 101 | data_.reset(); |
| 102 | } |
| 103 | |
| 104 | void Image::Resize(const Extent3D& extent, const ColorRGBAd& fillColor) |
| 105 | { |