1
0
Fork 0
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:
jules 2016-07-01 15:35:04 +01:00
parent 3969000010
commit 31f935cc60
7 changed files with 34 additions and 18 deletions

View file

@ -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