mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added a new Graphics::drawImage method that takes a Rectangle<float>
This commit is contained in:
parent
3969000010
commit
31f935cc60
7 changed files with 34 additions and 18 deletions
|
|
@ -56,7 +56,7 @@ public:
|
|||
g.fillAll (Colours::black);
|
||||
|
||||
g.setOpacity (1.0f);
|
||||
g.drawImageWithin (spectrogramImage, 0, 0, getWidth(), getHeight(), RectanglePlacement::stretchToFit);
|
||||
g.drawImage (spectrogramImage, getLocalBounds().toFloat());
|
||||
}
|
||||
|
||||
void timerCallback() override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue