| 379 | |
| 380 | template <class ImageType> |
| 381 | void ImageBaseKnob<ImageType>::setImageLayerCount(uint count) noexcept |
| 382 | { |
| 383 | DISTRHO_SAFE_ASSERT_RETURN(count > 1,); |
| 384 | |
| 385 | pData->imgLayerCount = count; |
| 386 | |
| 387 | if (pData->isImgVertical) |
| 388 | pData->imgLayerHeight = pData->image.getHeight()/count; |
| 389 | else |
| 390 | pData->imgLayerWidth = pData->image.getWidth()/count; |
| 391 | |
| 392 | setSize(pData->imgLayerWidth, pData->imgLayerHeight); |
| 393 | } |
| 394 | |
| 395 | template <class ImageType> |
| 396 | void ImageBaseKnob<ImageType>::setRotationAngle(int angle) |