| 172 | } |
| 173 | |
| 174 | void NinePatchImageParser::setSpriteFrameInfo(Image* image, const ax::Rect& frameRect, bool rotated) |
| 175 | { |
| 176 | this->_image = image; |
| 177 | AXASSERT(image->getPixelFormat() == backend::PixelFormat::RGBA8, |
| 178 | "unsupported format, currently only supports rgba8888"); |
| 179 | this->_imageFrame = frameRect; |
| 180 | this->_isRotated = rotated; |
| 181 | } |
| 182 | |
| 183 | bool NinePatchImageParser::isNinePatchImage(std::string_view filepath) |
| 184 | { |