The OS is Windows 7, with visual C++ 2008 and Juce 1.50.
When i use Image::ARGB as pixel format, it works well.
I create a single channel image:
juce::Image* testImage = new Image(juce::Image::SingleChannel, imageProcessor->getImageWidth(),imageProcessor->getImageHeight(), true);
And after that i dont really know how can i load this image with simple uint8 values.
I tried to create bitmapdata as:
Image::BitmapData bd(*testImage , 0, 0, testImage ->getWidth(), testImage ->getHeight(), true);
and after that i doing this
for(int i = 0; i < testImage ->getWidth() * testImage ->getHeight(); ++i)
bd.data[i] = 128;
it should be a gray color image in single channel.
Propably this is the problem, because the drawimgae function works well if i use ARGB or RGB pixel format.
Could you explain, how the juce handle the single channel pixelformat? I didn’t found to much about that in the refernce.