| 86 | } |
| 87 | |
| 88 | void Brush::setImage(const Image* image) |
| 89 | { |
| 90 | m_type = kImageBrushType; |
| 91 | m_image.reset(Image::createCopy(image)); |
| 92 | m_backupImage.reset(); |
| 93 | m_mainColor.reset(); |
| 94 | m_bgColor.reset(); |
| 95 | |
| 96 | m_bounds = gfx::Rect( |
| 97 | -m_image.get()->width()/2, -m_image.get()->height()/2, |
| 98 | m_image.get()->width(), m_image.get()->height()); |
| 99 | } |
| 100 | |
| 101 | template<class ImageTraits, |
| 102 | color_t color_mask, |
no test coverage detected