Page 1 of 1

Issue with TeeCreatMetafile

Posted: Sat Jun 28, 2014 7:22 pm
by 16567921
Hello,

I am using the latest 2014 TeeChart under XE6 and Windows 8.1 Attached you may find a sample application that creates a metafile and assigns it in a TImage. You can see that at the right and bottom of the created metafile appears something like a border.

Regards

Re: Issue with TeeCreatMetafile

Posted: Mon Jun 30, 2014 11:51 am
by yeray
Hello,

This sounds to be the same here:
http://www.teechart.net/support/viewtop ... =3&t=14851

In your case, these could be a workaround for you:

Code: Select all

procedure TForm1.Button1Click(Sender: TObject);
var m: tmetafile;
    oldColor: TColor;
begin
  oldColor:=Self.Color;
  Self.Color:=clWhite;
  m := Chart5.TeeCreateMetafile(false,
    Rect(0, 0, Round(Image1.Width), Round(Image1.Height)));

  Image1.Picture.Assign(m);
  m.Free;
  Self.Color:=oldColor;
end;

Re: Issue with TeeCreatMetafile

Posted: Mon Jun 30, 2014 4:59 pm
by 16567921
Hello Yeray,

Thank you for your reply, indeed the code you mentioned fixes the issue but before I add so many lines to my projects do you have an estimate if this will be fixed shortly?

Regards

Re: Issue with TeeCreatMetafile

Posted: Tue Jul 01, 2014 9:57 am
by yeray
Hello,
johnnix wrote:Thank you for your reply, indeed the code you mentioned fixes the issue but before I add so many lines to my projects do you have an estimate if this will be fixed shortly?
I've incremented the issue priority but I'm afraid I can't tell you a date for this to be fixed.
I see you've added your mail to the ticket so you can be notified when it will be closed.