Page 1 of 1

Legend.Symbol.Width vs. Legend.ColorWidth, and pixels / what

Posted: Tue Aug 05, 2008 2:58 am
by 9337917
Could you please explain the difference, and purpose, of the two properties Legend.Symbol.Width and Legend.ColorWidth?

Also, when Legend.Symbol.WidthUnits is set to lcsPixels, what is that a measurement of? Is that screen pixels, as in 1 / 96 of an inch, is it pixels like points, where it's 1/72 ", is it twips (1/1440 "), or even something else?

Similarly, when Chart.MarginUnits is set to muPixels, how granular is a pixel there?


Thank you!

Regards,
richard diamond

Posted: Tue Aug 05, 2008 3:56 pm
by Marc
Hello Richard,

ColorWidth modifies Legend.Symbol.Width.

lcsPixels defines screen pixels. The visual effect, granularity, will depend on your screen resolution (eg. on a 1280 pixel width screen the change of one pixel is of lower percentual effect than on an 800 pixel wide screen).

Regards,
Marc

Posted: Tue Aug 05, 2008 5:07 pm
by 5887342
Marc,

Okay, thank you..:)

That then leads to my original reason for asking. Does this suggest a system's screen resolution (96 or 120 dpi) will affect, say, the margin effect?

Given the following:

Code: Select all

procedure SomeProcedure;
var
  Meta  : TMetaFile;
begin 
  // let's say when it comes in here, the chart's already been created, then...
  Chart1.MarginUnits := muPixels;
  Chart1.LeftMargin := 10;

  Meta:=Chart1.TeeCreateMetafile(True, Rect( 0, 0, Chart1.Width, Chart1.Height ) );
    try
      Meta.SaveToFile( 'ffchart.emf' );
    finally
      Meta.Free;
    end;
end;
Will the chart produced by sending that file to printer differ if printed from a 96dpi screen resolution system than one printed from a 120dpi system?

Regards,
richard diamond

Posted: Tue Aug 26, 2008 8:01 am
by Pep
Hello Richard,
Will the chart produced by sending that file to printer differ if printed from a 96dpi screen resolution system than one printed from a 120dpi system?
Yes, it should differ.