I found a strange behaviour in the Graphics drawLine method. In the
following example, the four diagonal Pixels are red.
The other diagonal line
gg.drawLine(0.0f, 0.0f, 4.0f, 4.0f);
works as I would expect it.
Jan
[code]void MainComp::paint (Graphics& g)
{
g.fillAll (Colours::white);
Image myImage (Image::RGB, 4, 4, true);
Graphics gg (myImage);
gg.setColour (Colours::red);
gg.drawLine(0.0f, 3.0f, 4.0f, -1.0f);
// gg.drawLine(0.0f, 4.0f, 4.0f, 0.0f); does not end at the corners
g.drawImage(&myImage, 1, 1, 4, 4, 0, 0, 4, 4);
}[/code]