I’m in the slow progress of moving towards a Juce version of my plugin. For now I really only want to use the Image class of Juce. I would like to use the loading functions ( which i got working ) and the painting functions. I have great trouble getting the images on screen. At the moment I use the following code, but that does not work. How can I do something similar for just getting an Image on screen. Outside the scope of this function I would like to use as less Juce as possible since I’m using my own graphics framework there.
Any suggestions ?
[code]// beware the following code does not work !
if ( fJuceImage.isValid() )
juce::Image nativeBitmap( juce::Image::ARGB, dest.GetWidth(), dest.GetHeight(), true );
const juce::ScopedPointerjuce::LowLevelGraphicsContext lowLevelBM( nativeBitmap.createLowLevelContext() );
juce::Graphics juceG( lowLevelBM ); juceG.drawImageWithin( fJuceImage, 0,0, dest.GetWidth(), dest.GetHeight(), juce::RectanglePlacement( juce::RectanglePlacement::fillDestination ), false );