Assign a back image by code
Posted: Thu Jul 21, 2016 7:25 am
Hello,
I am facing a strange issue with back image and TeeCreateMetafile so first I would like to ask if my code for assigning a back image is correct:
Do I need to call anything else? FYI the chart displays correctly on the screen but when the TeeCreateMetafile is called it looks like the plot is drawn twice!
I am facing a strange issue with back image and TeeCreateMetafile so first I would like to ask if my code for assigning a back image is correct:
Code: Select all
aBit := TPngImage.Create;
try
aBit.LoadFromResourceName(HInstance, 'PngImage_2');
MyChart.BackImage.Assign(aBit);
finally
aBit.Free;
end;