How to draw colored figure on monochrome bitmap (C++ Builder)

Dear people, please help with one problem solution! THE TASK: draw a colored figure (say, a line) over monochrome image loaded from file. I cannot invent nothing but following:

1
2
3
4
5
6
7
8
TImage *Image1;
...

Image1->Picture->LoadFromFile("monochrome.bmp");
Image1->Picture->Bitmap->Canvas->Pen->Color = clBlue;
Image1->Picture->Bitmap->Canvas->LineTo(100, 100);

...


THE PROBLEM: the line is always gray, independently on chosen color.

Image1->Picture->Bitmap->Monochrome = false - does not help.
Last edited on
Topic archived. No new replies allowed.